Skip to content

Commit

Permalink
remove backup-password feature
Browse files Browse the repository at this point in the history
  • Loading branch information
koko37 committed Aug 12, 2024
1 parent 9bcc774 commit a48a5b2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 36 deletions.
3 changes: 3 additions & 0 deletions src/assets/icons/arrow-up.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
46 changes: 10 additions & 36 deletions src/pages/Home/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import HideIcon from "@mybucks/assets/icons/hide.svg";
import CopyIcon from "@mybucks/assets/icons/copy.svg";
import GasIcon from "@mybucks/assets/icons/gas.svg";
import LockIcon from "@mybucks/assets/icons/lock.svg";
import ArrowUpIcon from "@mybucks/assets/icons/arrow-up.svg";

const NetworkAndFeatures = styled.div`
display: flex;
Expand Down Expand Up @@ -53,20 +54,19 @@ const GasPriceWrapper = styled.div`
font-size: ${({ theme }) => theme.sizes.sm};
`;

const FeaturesWrapper = styled.div`
const BackupButton = styled(BaseButton).attrs({ $size: "small" })`
display: flex;
align-items: center;
gap: ${({ theme }) => theme.sizes.x2l};
gap: 8px;
padding: 6px 8px;
${media.md`
display: none;
span {
display: none;
}
`}
`;

const Button = styled(BaseButton)`
line-height: 180%;
`;

const CloseButton = styled(BaseButton).attrs({ $size: "small" })`
display: flex;
padding: 6px 8px;
Expand Down Expand Up @@ -139,18 +139,6 @@ const NativeBalance = styled.h3`
`}
`;

const FeaturesWrapper2 = styled.div`
display: none;
${media.md`
display: flex;
align-items: center;
justify-content: center;
gap: ${({ theme }) => theme.sizes.xl};
margin-bottom: ${({ theme }) => theme.sizes.xl};
`}
`;

const TokensList = styled.div`
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -218,14 +206,9 @@ const EvmHome = () => {
</GasPriceWrapper>
</NetworkWrapper>

<FeaturesWrapper>
<Button onClick={backupPrivateKey} $size="small">
Backup private key
</Button>
<Button onClick={backupPassword} $size="small">
Backup password
</Button>
</FeaturesWrapper>
<BackupButton onClick={backupPrivateKey}>
<img src={ArrowUpIcon} /> <span>Backup Private Key</span>
</BackupButton>

<CloseButton onClick={close}>
<img src={LockIcon} />
Expand Down Expand Up @@ -269,15 +252,6 @@ const EvmHome = () => {
</NativeBalance>
</PrimaryBox>

<FeaturesWrapper2>
<Button onClick={backupPrivateKey} $size="small">
Backup private key
</Button>
<Button onClick={backupPassword} $size="small">
Backup password
</Button>
</FeaturesWrapper2>

<TokensList>
{tokenBalances
.filter((t) => !!t.nativeToken)
Expand Down

0 comments on commit a48a5b2

Please sign in to comment.