Skip to content

Commit 9e6468c

Browse files
committed
feat: show nft id in passports list
1 parent 66a7117 commit 9e6468c

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

src/components/PassportInfo/index.tsx

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,24 @@ import Radio from '@mui/material/Radio';
66

77
const PassportInfo = ({ passportInfo, selectedValue, onChange }: any) => {
88
return (
9-
<div style={{ display: 'flex', flexDirection: 'row', alignItems: 'center', width: '100%', gap: '8px' }}>
10-
<Radio
11-
checked={selectedValue?.nftID?.toString() === passportInfo?.nftID?.toString()}
12-
onChange={onChange}
13-
value="a"
14-
name="radio-buttons"
15-
inputProps={{ 'aria-label': 'A' }}
16-
sx={{
17-
padding: "0px",
18-
color: "#9FBFE5FE",
19-
'&.Mui-checked': {
9+
<div style={{ display: 'flex', flexDirection: 'row', alignItems: 'center', justifyContent: 'space-between', width: '100%', gap: '8px' }}>
10+
<div style={{ display: 'flex', flexDirection: 'row', alignItems: 'center', gap: '8px' }}>
11+
<Radio
12+
checked={selectedValue?.nftID?.toString() === passportInfo?.nftID?.toString()}
13+
onChange={onChange}
14+
value="a"
15+
name="radio-buttons"
16+
inputProps={{ 'aria-label': 'A' }}
17+
sx={{
18+
padding: "0px",
2019
color: "#9FBFE5FE",
21-
},
22-
}}
23-
/>
24-
<p style={{ fontSize: '12px', color: '#B1B1B2', textAlign: 'left', fontWeight: 700, paddingTop: 1 }}>{getPassportTitle(passportInfo)} Passport</p>
20+
'&.Mui-checked': {
21+
color: "#9FBFE5FE",
22+
},
23+
}}
24+
/>
25+
<p style={{ width: 'auto', fontSize: '12px', color: '#B1B1B2', textAlign: 'left', fontWeight: 700, paddingTop: 1 }}>#{passportInfo.nftID} - {getPassportTitle(passportInfo)}</p>
26+
</div>
2527
<p style={{ fontSize: '10px', color: '#B1B1B2', textAlign: 'right', fontWeight: 500, paddingBottom: 1 }}>{getExpirationDate(passportInfo)}</p>
2628
</div>
2729
);

0 commit comments

Comments
 (0)