mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-21 15:48:25 +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' }}
|
style={{ padding: isModalWidth ? 0 : '20px 30px', alignItems: 'start' }}
|
||||||
>
|
>
|
||||||
{isModalWidth && (
|
{isModalWidth && (
|
||||||
<YStack space={'$1'}>
|
<XStack
|
||||||
<Breadcrumb />
|
style={{
|
||||||
<Separator borderColor={'#F0F2F5'} marginTop={'6px'} />
|
width: '100%',
|
||||||
</YStack>
|
justifyContent: 'space-between',
|
||||||
)}
|
alignItems: 'center',
|
||||||
<XStack style={{ width: '100%', justifyContent: 'space-between' }}>
|
}}
|
||||||
<Text size={19} weight={'semibold'}>
|
>
|
||||||
{title}
|
<YStack space={'$1'}>
|
||||||
</Text>
|
<Breadcrumb />
|
||||||
{isModalWidth && (
|
<Separator borderColor={'#F0F2F5'} marginTop={'6px'} />
|
||||||
|
</YStack>
|
||||||
<ExpandRsIcon
|
<ExpandRsIcon
|
||||||
size={20}
|
size={20}
|
||||||
style={{ cursor: 'pointer' }}
|
style={{ cursor: 'pointer' }}
|
||||||
onClick={closeModal}
|
onClick={closeModal}
|
||||||
/>
|
/>
|
||||||
)}
|
</XStack>
|
||||||
</XStack>
|
)}
|
||||||
|
<Text size={19} weight={'semibold'}>
|
||||||
|
{title}
|
||||||
|
</Text>
|
||||||
{children}
|
{children}
|
||||||
</YStack>
|
</YStack>
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user