Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"devDependencies": {
"@commitlint/cli": "^16.0.0",
"@commitlint/config-conventional": "^16.0.0",
"@dimensiondev/eslint-plugin": "^0.0.1-20211222115249-7984aa5",
"@dimensiondev/eslint-plugin": "^0.0.1-20220104011158-0905fa1",
"@dimensiondev/patch-package": "^6.5.0",
"@jest/globals": "^27.4.4",
"@magic-works/i18n-codegen": "^0.0.6",
Expand Down
1 change: 1 addition & 0 deletions packages/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"import/no-deprecated": "warn",
"no-cond-assign": "error",
"no-constant-condition": "error",
"no-duplicate-imports": "off",
"no-script-url": "error",
"no-throw-literal": "error",
"no-unmodified-loop-condition": "error",
Expand Down
2 changes: 1 addition & 1 deletion packages/mask/src/components/shared/ApplicationBoard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ export function ApplicationBoard({ secondEntries, secondEntryChainTabs }: MaskAp
walletRequired && !selectedWallet ? classes.disabled : '',
)}
onClick={onClick}
key={i.toString()}>
key={i}>
<img src={img} className={classes.applicationImg} />
<Typography className={classes.title} color="textPrimary">
{title}
Expand Down
2 changes: 1 addition & 1 deletion packages/mask/src/plugins/GoodGhosting/UI/TimelineView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export function TimelineView(props: TimelineViewProps) {
<Grid container className={classes.timeline}>
<Grid item className={classes.timelinePadding} />
{timeline.map((timelineEvent, index) => (
<Grid item className={classes.timelineCells} key={`timeline-${timelineEvent.date.toString()}`}>
<Grid item className={classes.timelineCells} key={index}>
<div className={classes.timelineEvent}>
<Typography variant="caption" color="textSecondary" className={classes.text}>
{timelineEvent.eventOnDate}
Expand Down
4 changes: 2 additions & 2 deletions packages/mask/src/plugins/ITO/SNSAdaptor/NftAirdropCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,15 +225,15 @@ export function NftAirdropCard(props: NftAirdropCardProps) {
<div className={classes.claimParent}>
{campaignInfos.map((v, i) => {
return v.claimableInfo.claimable ? (
<div key={i.toString()}>
<div key={i}>
<ClaimItem campaignInfo={v.campaignInfo} claimed={v.claimableInfo.claimed} retry={retry} />
</div>
) : null
})}
</div>
<Typography className={classes.text}>
{t('plugin_ito_total_claimable_count')}
{`${claimableCount} ${claimableCount > 1 ? 'items' : 'item'}`},
{claimableCount} {claimableCount > 1 ? 'items' : 'item'}`
</Typography>

<Typography className={classes.subText}>{t('plugin_airdrop_nft_check_address')}</Typography>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ export function RedPacketERC721Form(props: RedPacketERC721FormProps) {
<div className={classes.tokenSelectorParent}>
<List className={classes.tokenSelector}>
{existTokenDetailedList.map((value, i) => (
<ListItem key={i.toString()} className={classNames(classes.tokenSelectorWrapper)}>
<ListItem key={i} className={classNames(classes.tokenSelectorWrapper)}>
<NftImage
token={value}
classes={{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ export function RedpacketNftConfirmDialog(props: RedpacketNftConfirmDialogProps)
<Grid item xs={12}>
<List className={classes.tokenSelector}>
{tokenList.map((value, i) => (
<ListItem key={i.toString()} className={classNames(classes.tokenSelectorWrapper)}>
<ListItem key={i} className={classNames(classes.tokenSelectorWrapper)}>
<NftImage
token={value}
classes={{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -444,8 +444,8 @@ export function SelectNftTokenDialog(props: SelectNftTokenDialogProps) {
tokenIdList: (
<span>
{nonExistedTokenIdList.map((id, i) => (
<span key={i.toString()}>
<span className={classes.tokenId}>{' #' + id}</span>
<span key={i}>
<span className={classes.tokenId}> #{id}</span>
{i < nonExistedTokenIdList.length - 1 ? ', ' : ' '}
</span>
))}
Expand Down Expand Up @@ -640,7 +640,7 @@ export function SelectNftTokenDialog(props: SelectNftTokenDialogProps) {
? classes.hide
: '',
)}
key={i.toString()}>
key={i}>
<NftImage
token={token}
classes={{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export function InformationCard(props: InformationCardProps) {
.filter((strategy) => Boolean(strategy.params.address))
.map((strategy, i) => (
<Link
key={i.toString()}
key={i}
className={classes.link}
target="_blank"
rel="noopener"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function Content() {
title={proposal.isEnd ? t('plugin_snapshot_result_title') : t('plugin_snapshot_current_result_title')}>
<List className={classes.list}>
{results.map((result, i) => (
<ListItem className={classes.listItem} key={i.toString()}>
<ListItem className={classes.listItem} key={i}>
<Box className={classes.listItemHeader}>
<ShadowRootTooltip
PopperProps={{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ function SearchResultBox(props: SearchResultBoxProps) {
) : (
<List>
{(keyword === '' ? contractList : searchedTokenList).map((contract, i) => (
<div key={i.toString()}>
<ContractListItem key={i.toString()} onSubmit={onSubmit} contract={contract} />
<div key={i}>
<ContractListItem onSubmit={onSubmit} contract={contract} />
</div>
))}
</List>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const ListItem = styled(ListItemButton)`
display: inline-flex;
&:hover {
background: rgba(15, 20, 25, 0.1);
${({ theme }) => (theme.palette.mode === 'dark' ? `background: rgba(217, 217, 217, 0.1);` : '')}
${({ theme }) => (theme.palette.mode === 'dark' ? 'background: rgba(217, 217, 217, 0.1);' : '')}
}
/* twitter break point */
@media screen and (max-width: ${twitterBreakPoint}px) {
Expand Down
13 changes: 5 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.