mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-09 18:13:39 +00:00
fix: delete title and subtitle and use only titles
This commit is contained in:
parent
5d709b4874
commit
210108f0ed
@ -1,16 +0,0 @@
|
|||||||
import { Text } from '@status-im/components'
|
|
||||||
|
|
||||||
type SubTitleProps = {
|
|
||||||
color?: string
|
|
||||||
children: string
|
|
||||||
}
|
|
||||||
|
|
||||||
const SubTitle = ({ color, children }: SubTitleProps) => {
|
|
||||||
return (
|
|
||||||
<Text size={15} color={color}>
|
|
||||||
{children}
|
|
||||||
</Text>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
export default SubTitle
|
|
@ -1,16 +0,0 @@
|
|||||||
import { Text } from '@status-im/components'
|
|
||||||
|
|
||||||
type TitleProps = {
|
|
||||||
color?: string
|
|
||||||
children: string
|
|
||||||
}
|
|
||||||
|
|
||||||
const Title = ({ color, children }: TitleProps) => {
|
|
||||||
return (
|
|
||||||
<Text size={27} weight={'semibold'} color={color}>
|
|
||||||
{children}
|
|
||||||
</Text>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
export default Title
|
|
@ -1,6 +1,5 @@
|
|||||||
import { XStack, YStack } from 'tamagui'
|
import { XStack, YStack } from 'tamagui'
|
||||||
import { Button, Text } from '@status-im/components'
|
import { Button, Text } from '@status-im/components'
|
||||||
import Title from './Title'
|
|
||||||
import { RevealIcon } from '@status-im/icons'
|
import { RevealIcon } from '@status-im/icons'
|
||||||
|
|
||||||
type TitlesProps = {
|
type TitlesProps = {
|
||||||
@ -13,16 +12,16 @@ const Titles = ({ title, subtitle, isAdvancedSettings }: TitlesProps) => {
|
|||||||
return (
|
return (
|
||||||
<YStack style={{ width: '100%', margin: '0 0 1em' }}>
|
<YStack style={{ width: '100%', margin: '0 0 1em' }}>
|
||||||
<XStack style={{ justifyContent: 'space-between', alignItems: 'center' }}>
|
<XStack style={{ justifyContent: 'space-between', alignItems: 'center' }}>
|
||||||
<Title color={'#09101C'}>{title}</Title>
|
<Text size={27} weight={'semibold'}>
|
||||||
|
{title}
|
||||||
|
</Text>
|
||||||
{isAdvancedSettings && (
|
{isAdvancedSettings && (
|
||||||
<Button size={32} variant="outline" icon={<RevealIcon size={20} />}>
|
<Button size={32} variant="outline" icon={<RevealIcon size={20} />}>
|
||||||
Advanced Settings
|
Advanced Settings
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
</XStack>
|
</XStack>
|
||||||
<Text size={15} weight="regular">
|
<Text size={15}>{subtitle}</Text>
|
||||||
{subtitle}
|
|
||||||
</Text>
|
|
||||||
</YStack>
|
</YStack>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user