fix(sidebars-wrapper): name of component
This commit is contained in:
parent
90bbc345ad
commit
df0fc77a92
|
@ -3,19 +3,19 @@ import { XStack } from 'tamagui'
|
||||||
|
|
||||||
import LeftSidebar from '../General/LeftSidebar/LeftSidebar'
|
import LeftSidebar from '../General/LeftSidebar/LeftSidebar'
|
||||||
import RightSidebar from '../General/RightSideBar/RightSidebar'
|
import RightSidebar from '../General/RightSideBar/RightSidebar'
|
||||||
import styles from './side-bars-wrapper.module.css'
|
import styles from './sidebars-wrapper.module.css'
|
||||||
|
|
||||||
type SideBardsWrapperProps = {
|
type SidebarsWrapperProps = {
|
||||||
children: ReactNode
|
children: ReactNode
|
||||||
isNotLeftSideBar?: boolean
|
isNotLeftSideBar?: boolean
|
||||||
isNotRightSideBar?: boolean
|
isNotRightSideBar?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
const SideBarsWrapper = ({
|
const SidebarsWrapper = ({
|
||||||
children,
|
children,
|
||||||
isNotLeftSideBar,
|
isNotLeftSideBar,
|
||||||
isNotRightSideBar,
|
isNotRightSideBar,
|
||||||
}: SideBardsWrapperProps) => {
|
}: SidebarsWrapperProps) => {
|
||||||
return (
|
return (
|
||||||
<XStack style={{ height: '100vh' }}>
|
<XStack style={{ height: '100vh' }}>
|
||||||
{!isNotLeftSideBar && <LeftSidebar />}
|
{!isNotLeftSideBar && <LeftSidebar />}
|
||||||
|
@ -29,4 +29,4 @@ const SideBarsWrapper = ({
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
export default SideBarsWrapper
|
export default SidebarsWrapper
|
||||||
|
|
Loading…
Reference in New Issue