-
-
Notifications
You must be signed in to change notification settings - Fork 282
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
import React from 'react'; | ||
import { Box, Text, IconButton, Icon, Icons, Scroll } from 'folds'; | ||
import { Page, PageContent, PageHeader } from '../../../components/page'; | ||
import { SequenceCard } from '../../../components/sequence-card'; | ||
import { SequenceCardStyle } from '../styles.css'; | ||
import { SettingTile } from '../../../components/setting-tile'; | ||
|
||
type EncryptionProps = { | ||
requestClose: () => void; | ||
}; | ||
export function Encryption({ requestClose }: EncryptionProps) { | ||
return ( | ||
<Page> | ||
<PageHeader outlined={false}> | ||
<Box grow="Yes" gap="200"> | ||
<Box grow="Yes" alignItems="Center" gap="200"> | ||
<Text size="H3" truncate> | ||
Encryption | ||
</Text> | ||
</Box> | ||
<Box shrink="No"> | ||
<IconButton onClick={requestClose} variant="Surface"> | ||
<Icon src={Icons.Cross} /> | ||
</IconButton> | ||
</Box> | ||
</Box> | ||
</PageHeader> | ||
<Box grow="Yes"> | ||
<Scroll hideTrack visibility="Hover"> | ||
<PageContent> | ||
<Box direction="Column" gap="700"> | ||
<Box direction="Column" gap="100"> | ||
<Text size="L400">Online Backup</Text> | ||
<SequenceCard | ||
className={SequenceCardStyle} | ||
variant="SurfaceVariant" | ||
direction="Column" | ||
gap="400" | ||
> | ||
<SettingTile | ||
title="Messages Online Backup" | ||
description="Always keep secure backup of your encrypted messages data to decrypt messages later." | ||
/> | ||
</SequenceCard> | ||
</Box> | ||
<Box direction="Column" gap="100"> | ||
<Text size="L400">Local Backup</Text> | ||
<SequenceCard | ||
className={SequenceCardStyle} | ||
variant="SurfaceVariant" | ||
direction="Column" | ||
gap="400" | ||
> | ||
<SettingTile | ||
title="Export Messages Data" | ||
description="Save copy of encryption data on your device to decrypt messages later." | ||
/> | ||
</SequenceCard> | ||
<SequenceCard | ||
className={SequenceCardStyle} | ||
variant="SurfaceVariant" | ||
direction="Column" | ||
gap="400" | ||
> | ||
<SettingTile | ||
title="Import Messages Data" | ||
description="Load copy of encryption data from device to decrypt your messages." | ||
/> | ||
</SequenceCard> | ||
</Box> | ||
</Box> | ||
</PageContent> | ||
</Scroll> | ||
</Box> | ||
</Page> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './Encryption'; |