mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-20 15:18:33 +00:00
feat(panel-content): move exit button next to breadcrumb
This commit is contained in:
parent
146fc44b46
commit
2856061e45
@ -23,23 +23,27 @@ const PanelContent = ({
|
||||
style={{ padding: isModalWidth ? 0 : '20px 30px', alignItems: 'start' }}
|
||||
>
|
||||
{isModalWidth && (
|
||||
<YStack space={'$1'}>
|
||||
<Breadcrumb />
|
||||
<Separator borderColor={'#F0F2F5'} marginTop={'6px'} />
|
||||
</YStack>
|
||||
)}
|
||||
<XStack style={{ width: '100%', justifyContent: 'space-between' }}>
|
||||
<Text size={19} weight={'semibold'}>
|
||||
{title}
|
||||
</Text>
|
||||
{isModalWidth && (
|
||||
<XStack
|
||||
style={{
|
||||
width: '100%',
|
||||
justifyContent: 'space-between',
|
||||
alignItems: 'center',
|
||||
}}
|
||||
>
|
||||
<YStack space={'$1'}>
|
||||
<Breadcrumb />
|
||||
<Separator borderColor={'#F0F2F5'} marginTop={'6px'} />
|
||||
</YStack>
|
||||
<ExpandRsIcon
|
||||
size={20}
|
||||
style={{ cursor: 'pointer' }}
|
||||
onClick={closeModal}
|
||||
/>
|
||||
)}
|
||||
</XStack>
|
||||
</XStack>
|
||||
)}
|
||||
<Text size={19} weight={'semibold'}>
|
||||
{title}
|
||||
</Text>
|
||||
{children}
|
||||
</YStack>
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user