From 1caab5d4ae4351d16215d86758eafeea0514c7f0 Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Thu, 28 Mar 2024 21:31:00 +0200 Subject: [PATCH] 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 --- .../PageWrappers/SidebarsWrapper.tsx | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/components/PageWrappers/SidebarsWrapper.tsx diff --git a/src/components/PageWrappers/SidebarsWrapper.tsx b/src/components/PageWrappers/SidebarsWrapper.tsx new file mode 100644 index 00000000..9429d7d4 --- /dev/null +++ b/src/components/PageWrappers/SidebarsWrapper.tsx @@ -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 ( + + {!isNotLeftSideBar && } + {children} + {!isNotRightSideBar && ( +
+ +
+ )} +
+ ) +} + +export default SidebarsWrapper