feat(keystore-card): create selected design
This commit is contained in:
parent
767f300710
commit
133f7641f0
|
@ -37,7 +37,7 @@ const MigratePanel = () => {
|
|||
</Text>
|
||||
</div>
|
||||
</YStack>
|
||||
<KeystoreBackupsCard />
|
||||
<KeystoreBackupsCard isSelected={true} />
|
||||
<div style={{ width: '100%' }}>
|
||||
{isVisibleWarning && (
|
||||
<InformationBox
|
||||
|
|
|
@ -17,3 +17,9 @@ type Story = StoryObj<typeof meta>
|
|||
export const Default: Story = {
|
||||
args: {},
|
||||
}
|
||||
|
||||
export const Selected: Story = {
|
||||
args: {
|
||||
isSelected: true,
|
||||
},
|
||||
}
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
import { Text } from '@status-im/components'
|
||||
import { XStack, YStack } from 'tamagui'
|
||||
|
||||
const KeystoreBackupsCard = () => {
|
||||
type KeystoreBackupsCardProps = {
|
||||
isSelected?: boolean
|
||||
}
|
||||
|
||||
const KeystoreBackupsCard = ({ isSelected }: KeystoreBackupsCardProps) => {
|
||||
const downloadKeyFilesHandler = () => {
|
||||
const element = document.createElement('a')
|
||||
const file = new Blob([''], { type: 'text/plain' })
|
||||
|
@ -14,7 +18,8 @@ const KeystoreBackupsCard = () => {
|
|||
return (
|
||||
<YStack
|
||||
style={{
|
||||
border: '1px solid #DCE0E5',
|
||||
backgroundColor: isSelected ? '#f4f6fe' : '#fff',
|
||||
border: `1px solid ${isSelected ? '#2A4AF566' : '#DCE0E5'}`,
|
||||
borderRadius: '16px',
|
||||
padding: '9px 16px',
|
||||
cursor: 'pointer',
|
||||
|
|
Loading…
Reference in New Issue