feat: remove not used components from Advicsories

This commit is contained in:
RadoslavDimchev 2023-08-25 10:02:30 +03:00
parent f63d9c5798
commit ab17c39a82
1 changed files with 31 additions and 43 deletions

View File

@ -1,8 +1,7 @@
import { Button, Text } from '@status-im/components' import { Text } from '@status-im/components'
import { useState } from 'react' import { useState } from 'react'
import { Stack, XStack, YStack } from 'tamagui' import { Stack, XStack, YStack } from 'tamagui'
import AdvisoriesContent from './AdvisoriesContent' import AdvisoriesContent from './AdvisoriesContent'
import ValidatorBoxWrapper from '../ValidatorBoxWrapper/ValidatorBoxWrapper'
type AdvisoryTopicsType = { type AdvisoryTopicsType = {
[key: string]: string [key: string]: string
@ -24,8 +23,6 @@ const Advicsories = () => {
const [selectedTitle, setSelectedTitle] = useState('Bad Behaviour') const [selectedTitle, setSelectedTitle] = useState('Bad Behaviour')
return ( return (
<>
<ValidatorBoxWrapper>
<XStack <XStack
justifyContent={'space-between'} justifyContent={'space-between'}
className="layout-left" className="layout-left"
@ -37,11 +34,7 @@ const Advicsories = () => {
<Text size={27}>Advisories</Text> <Text size={27}>Advisories</Text>
</Stack> </Stack>
{Object.keys(advisoryTopics).map((title, index) => ( {Object.keys(advisoryTopics).map((title, index) => (
<Stack <Stack key={title} onPress={() => setSelectedTitle(title)} style={{ cursor: 'pointer' }}>
key={title}
onPress={() => setSelectedTitle(title)}
style={{ cursor: 'pointer' }}
>
<Text <Text
size={15} size={15}
weight={selectedTitle === title && 'semibold'} weight={selectedTitle === title && 'semibold'}
@ -59,11 +52,6 @@ const Advicsories = () => {
></AdvisoriesContent> ></AdvisoriesContent>
</YStack> </YStack>
</XStack> </XStack>
</ValidatorBoxWrapper>
<Stack style={{ alignItems: 'end', width: '100%', marginTop: '16px' }}>
<Button>Continue</Button>
</Stack>
</>
) )
} }