fix(sidebars-wrapper): return file with new name
GitHub doesn't showed changes when I renamed the file, so I had to delete it, push it and return it
This commit is contained in:
parent
6ec615b2f7
commit
1caab5d4ae
|
@ -0,0 +1,32 @@
|
||||||
|
import { ReactNode } from 'react'
|
||||||
|
import { XStack } from 'tamagui'
|
||||||
|
|
||||||
|
import LeftSidebar from '../General/LeftSidebar/LeftSidebar'
|
||||||
|
import RightSidebar from '../General/RightSideBar/RightSidebar'
|
||||||
|
import styles from './sidebars-wrapper.module.css'
|
||||||
|
|
||||||
|
type SidebarsWrapperProps = {
|
||||||
|
children: ReactNode
|
||||||
|
isNotLeftSideBar?: boolean
|
||||||
|
isNotRightSideBar?: boolean
|
||||||
|
}
|
||||||
|
|
||||||
|
const SidebarsWrapper = ({
|
||||||
|
children,
|
||||||
|
isNotLeftSideBar,
|
||||||
|
isNotRightSideBar,
|
||||||
|
}: SidebarsWrapperProps) => {
|
||||||
|
return (
|
||||||
|
<XStack style={{ height: '100vh' }}>
|
||||||
|
{!isNotLeftSideBar && <LeftSidebar />}
|
||||||
|
{children}
|
||||||
|
{!isNotRightSideBar && (
|
||||||
|
<div className={styles['right-sidebar-wrapper']}>
|
||||||
|
<RightSidebar />
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</XStack>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default SidebarsWrapper
|
Loading…
Reference in New Issue