This commit is contained in:
PhilReact 2025-02-19 15:41:05 +02:00
parent 1d1e9a3322
commit a31914638c
2 changed files with 51 additions and 28 deletions

View File

@ -31,6 +31,8 @@ import { JsonView, allExpanded, darkStyles } from 'react-json-view-lite';
import 'react-json-view-lite/dist/index.css'; import 'react-json-view-lite/dist/index.css';
import { CountdownCircleTimer } from "react-countdown-circle-timer"; import { CountdownCircleTimer } from "react-countdown-circle-timer";
import Logo1 from "./assets/svgs/Logo1.svg"; import Logo1 from "./assets/svgs/Logo1.svg";
import WarningIcon from '@mui/icons-material/Warning';
import Logo1Dark from "./assets/svgs/Logo1Dark.svg"; import Logo1Dark from "./assets/svgs/Logo1Dark.svg";
import RefreshIcon from "@mui/icons-material/Refresh"; import RefreshIcon from "@mui/icons-material/Refresh";
import Logo2 from "./assets/svgs/Logo2.svg"; import Logo2 from "./assets/svgs/Logo2.svg";
@ -2822,6 +2824,8 @@ await showInfo({
setWalletToBeDownloadedPasswordConfirm(e.target.value) setWalletToBeDownloadedPasswordConfirm(e.target.value)
} }
/> />
<Spacer height="5px" />
<Typography variant="body2">There is no minimum length requirement</Typography>
<Spacer height="17px" /> <Spacer height="17px" />
<CustomButton onClick={createAccountFunc}> <CustomButton onClick={createAccountFunc}>
@ -2845,7 +2849,17 @@ await showInfo({
> >
Congrats, youre all set up! Congrats, youre all set up!
</TextP> </TextP>
<Spacer height="100px" /> <Spacer height="50px"/>
<Box sx={{
display: 'flex',
gap: '15px',
alignItems: 'center',
padding: '10px'
}}>
<WarningIcon color="warning" />
<Typography>Save your account in a place where you will remember it!</Typography>
</Box>
<Spacer height="50px" />
<CustomButton <CustomButton
onClick={async () => { onClick={async () => {
await saveFileToDiskFunc(); await saveFileToDiskFunc();

View File

@ -285,10 +285,11 @@ export const Wallets = ({ setExtState, setRawWallet, rawWallet }) => {
<List <List
sx={{ sx={{
width: "100%", width: "100%",
maxWidth: "500px", maxWidth: "500px",
bgcolor: "background.paper", maxHeight: "60vh",
maxHeight: "60vh", overflowY: "auto",
overflow: "auto", overflowX: "hidden",
backgroundColor: "rgb(30 30 32 / 70%)"
}} }}
> >
{wallets?.map((wallet, idx) => { {wallets?.map((wallet, idx) => {
@ -443,38 +444,25 @@ const WalletItem = ({ wallet, updateWalletItem, idx, setSelectedWallet }) => {
}} }}
sx={{ sx={{
width: "100%", width: "100%",
padding: '10px'
}} }}
> >
<ListItem <ListItem
secondaryAction={ sx={{
<IconButton bgcolor: "background.paper",
onClick={(e) => { flexGrow: 1,
e.stopPropagation(); "&:hover": { backgroundColor: "secondary.main", transform: "scale(1.01)" },
setIsEdit(true); transition: "all 0.1s ease-in-out",
}} }}
edge="end"
aria-label="edit"
>
<EditIcon
sx={{
color: "white",
}}
/>
</IconButton>
}
alignItems="flex-start" alignItems="flex-start"
> >
<ListItemAvatar> <ListItemAvatar>
<Avatar alt="" src="/static/images/avatar/1.jpg" /> <Avatar alt="" src="/static/images/avatar/1.jpg" />
</ListItemAvatar> </ListItemAvatar>
<ListItemText <ListItemText
primary={
wallet?.name primary={wallet?.name ? wallet.name : wallet?.filename ? parsefilenameQortal(wallet?.filename) : "No name"}
? wallet.name
: wallet?.filename
? parsefilenameQortal(wallet?.filename)
: "No name"
}
secondary={ secondary={
<Box <Box
sx={{ sx={{
@ -490,10 +478,31 @@ const WalletItem = ({ wallet, updateWalletItem, idx, setSelectedWallet }) => {
{wallet?.address0} {wallet?.address0}
</Typography> </Typography>
{wallet?.note} {wallet?.note}
<Typography sx={{
textAlign: 'end',
marginTop: '5px'
}}>Login</Typography>
</Box> </Box>
} }
/> />
</ListItem> </ListItem>
<IconButton
sx={{
alignSelf: 'flex-start'
}}
onClick={(e) => {
e.stopPropagation();
setIsEdit(true);
}}
edge="end"
aria-label="edit"
>
<EditIcon
sx={{
color: "white",
}}
/>
</IconButton>
</ButtonBase> </ButtonBase>
{isEdit && ( {isEdit && (
<Box <Box