Skip to content

Commit

Permalink
Add Activate Wallet Sync drawer screen
Browse files Browse the repository at this point in the history
  • Loading branch information
sshmaxime committed Apr 30, 2024
1 parent cd01c18 commit 29e5925
Showing 1 changed file with 79 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,87 @@
import { useFeature } from "@ledgerhq/live-common/featureFlags/index";
import React, { useState } from "react";
import { Box, Flex, Grid, Icons, Text } from "@ledgerhq/react-ui";

Check failure on line 2 in apps/ledger-live-desktop/src/renderer/screens/settings/sections/General/WalletSyncRow.tsx

View check run for this annotation

live-github-bot / @Desktop • Test App

@typescript-eslint/no-unused-vars

'Grid' is defined but never used.

Check failure on line 2 in apps/ledger-live-desktop/src/renderer/screens/settings/sections/General/WalletSyncRow.tsx

View check run for this annotation

live-github-bot / @Desktop • Test App

@typescript-eslint/no-unused-vars

'Grid' is defined but never used.
import { RefreshMedium } from "@ledgerhq/react-ui/assets/icons";

Check failure on line 3 in apps/ledger-live-desktop/src/renderer/screens/settings/sections/General/WalletSyncRow.tsx

View check run for this annotation

live-github-bot / @Desktop • Test App

@typescript-eslint/no-unused-vars

'RefreshMedium' is defined but never used.

Check failure on line 3 in apps/ledger-live-desktop/src/renderer/screens/settings/sections/General/WalletSyncRow.tsx

View check run for this annotation

live-github-bot / @Desktop • Test App

@typescript-eslint/no-unused-vars

'RefreshMedium' is defined but never used.
import React, { PropsWithChildren, useState } from "react";
import { backgroundColor } from "styled-system";

Check failure on line 5 in apps/ledger-live-desktop/src/renderer/screens/settings/sections/General/WalletSyncRow.tsx

View check run for this annotation

live-github-bot / @Desktop • Test App

@typescript-eslint/no-unused-vars

'backgroundColor' is defined but never used.

Check failure on line 5 in apps/ledger-live-desktop/src/renderer/screens/settings/sections/General/WalletSyncRow.tsx

View check run for this annotation

live-github-bot / @Desktop • Test App

@typescript-eslint/no-unused-vars

'backgroundColor' is defined but never used.
import Button from "~/renderer/components/Button";
import ButtonV3 from "~/renderer/components/ButtonV3";
import { SideDrawer } from "~/renderer/components/SideDrawer";
import useTheme from "~/renderer/hooks/useTheme";

const LogoWrapper = ({ children }: PropsWithChildren) => (
<Box>
<Flex padding="7px" borderRadius="13px">
<Flex
style={{
borderRadius: "9px",
backgroundColor: "hsla(248, 100%, 85%, 0.08)",
padding: "5px",
opacity: "70%",
}}
>
{children}
</Flex>
</Flex>
</Box>
);

const SideContentActivateWalletSync = () => {
return <div>Activate Wallet Sync</div>;
const { colors } = useTheme();

return (
<Flex
flexDirection="column"
height="100%"
paddingX="64px"
alignSelf="center"
justifyContent="center"
rowGap="48px"
>
<Flex flexDirection="column" alignSelf="center" justifyContent="center" rowGap="24px">
<Flex justifyContent="center" alignItems="center">
<LogoWrapper>
<Icons.Mobile color={colors.constant.purple} />
</LogoWrapper>

<LogoWrapper>
<Icons.Refresh size="L" color={colors.constant.purple} />
</LogoWrapper>

<LogoWrapper>
<Icons.Desktop color={colors.constant.purple} />
</LogoWrapper>
</Flex>

<Text fontSize={24} variant="h4Inter" textAlign="center">
Activate sallet sync
</Text>
<Text fontSize={14} variant="body" color="hsla(0, 0%, 58%, 1)" textAlign="center">
Create a secure backup of your Ledger Live and synchronize multiple instances of Ledger
Live, both on mobile and desktop.
</Text>
<Flex justifyContent="center">
<ButtonV3 variant="main">Create a backup</ButtonV3>
</Flex>
</Flex>

<Box>
<Flex
flexDirection="row"
padding="18px"
borderRadius="12px"
backgroundColor={colors.opacityDefault.c05}
justifyContent="space-between"
>
<Text variant="body" fontSize={14} flexShrink={1}>
Already created a back-up on another Device ?
</Text>
<Box>
<ButtonV3 variant="shade">Synchronize</ButtonV3>
</Box>
</Flex>
</Box>
</Flex>
);
};

const SideContentWalletSync = () => {
Expand Down

0 comments on commit 29e5925

Please sign in to comment.