mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-04 07:34:06 +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 { Button, Text } from '@status-im/components'
|
||||
import Title from './Title'
|
||||
import { RevealIcon } from '@status-im/icons'
|
||||
|
||||
type TitlesProps = {
|
||||
@ -13,16 +12,16 @@ const Titles = ({ title, subtitle, isAdvancedSettings }: TitlesProps) => {
|
||||
return (
|
||||
<YStack style={{ width: '100%', margin: '0 0 1em' }}>
|
||||
<XStack style={{ justifyContent: 'space-between', alignItems: 'center' }}>
|
||||
<Title color={'#09101C'}>{title}</Title>
|
||||
<Text size={27} weight={'semibold'}>
|
||||
{title}
|
||||
</Text>
|
||||
{isAdvancedSettings && (
|
||||
<Button size={32} variant="outline" icon={<RevealIcon size={20} />}>
|
||||
Advanced Settings
|
||||
</Button>
|
||||
)}
|
||||
</XStack>
|
||||
<Text size={15} weight="regular">
|
||||
{subtitle}
|
||||
</Text>
|
||||
<Text size={15}>{subtitle}</Text>
|
||||
</YStack>
|
||||
)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user