fix: delete os card files for github test
This commit is contained in:
parent
0cd5ff1c54
commit
0924932301
|
@ -1,21 +0,0 @@
|
|||
import type { Meta, StoryObj } from '@storybook/react'
|
||||
|
||||
import OSCard from './OSCard'
|
||||
import { MAC } from '../../../../constants'
|
||||
|
||||
const meta = {
|
||||
title: 'ValidatorOnboarding/OSCard',
|
||||
component: OSCard,
|
||||
tags: ['autodocs'],
|
||||
} satisfies Meta<typeof OSCard>
|
||||
|
||||
export default meta
|
||||
type Story = StoryObj<typeof meta>
|
||||
|
||||
export const Default: Story = {
|
||||
args: {
|
||||
icon: '/icons/apple-logo.svg',
|
||||
name: MAC,
|
||||
isSelected: true,
|
||||
},
|
||||
}
|
|
@ -1,37 +0,0 @@
|
|||
import { Stack, YStack } from 'tamagui'
|
||||
import { Text } from '@status-im/components'
|
||||
|
||||
import Icon from '../../../../components/General/Icon'
|
||||
|
||||
type OSCardProps = {
|
||||
name: string
|
||||
icon: string
|
||||
onClick?: () => void
|
||||
isSelected?: boolean
|
||||
}
|
||||
|
||||
const OSCard = ({ name, icon, onClick, isSelected }: OSCardProps) => {
|
||||
return (
|
||||
<YStack
|
||||
style={{
|
||||
backgroundColor: isSelected ? '#2A4AF50D' : 'none',
|
||||
border: isSelected ? '1px solid #2A4AF566' : '1px solid rgba(0, 0, 0, 0.15);',
|
||||
borderRadius: '16px',
|
||||
padding: '12px 16px',
|
||||
width: '32%',
|
||||
cursor: 'pointer',
|
||||
}}
|
||||
space={'$8'}
|
||||
onPress={onClick}
|
||||
>
|
||||
<Stack>
|
||||
<Text size={19} weight={'semibold'}>
|
||||
{name}
|
||||
</Text>
|
||||
</Stack>
|
||||
<Icon src={icon} width={42} height={52} />
|
||||
</YStack>
|
||||
)
|
||||
}
|
||||
|
||||
export default OSCard
|
Loading…
Reference in New Issue