feat: make advanced settings optional
This commit is contained in:
parent
abda7859c0
commit
f9f39c6a17
|
@ -7,16 +7,19 @@ import Icon from './Icon'
|
|||
type TitlesProps = {
|
||||
title: string
|
||||
subtitle: string
|
||||
isAdvancedSettings?: boolean
|
||||
}
|
||||
|
||||
const Titles = ({ title, subtitle }: TitlesProps) => {
|
||||
const Titles = ({ title, subtitle, isAdvancedSettings }: TitlesProps) => {
|
||||
return (
|
||||
<YStack style={{ width: '100%' }}>
|
||||
<XStack style={{ justifyContent: 'space-between', alignItems: 'center' }}>
|
||||
<Title color={'#09101C'}>{title}</Title>
|
||||
<Button variant="outline" size={32} icon={<Icon src={'/icons/reveal.png'} />}>
|
||||
Advanced Settings
|
||||
</Button>
|
||||
{isAdvancedSettings && (
|
||||
<Button size={32} variant="outline" icon={<Icon src={'/icons/reveal.png'} />}>
|
||||
Advanced Settings
|
||||
</Button>
|
||||
)}
|
||||
</XStack>
|
||||
<SubTitle color={'#09101C'}>{subtitle}</SubTitle>
|
||||
</YStack>
|
||||
|
|
|
@ -35,6 +35,7 @@ const DeviceHeanlthCheckContent = () => {
|
|||
<Titles
|
||||
title="Device Health Check"
|
||||
subtitle="Configure your device to start Staking on Nimbus"
|
||||
isAdvancedSettings={true}
|
||||
/>
|
||||
<XStack space={'$4'}>
|
||||
<DeviceStorageHealth storage={1} maxStorage={2} />
|
||||
|
|
Loading…
Reference in New Issue