Removed Scrollview from ScaffoldMobile and now each view implement its scroll

This commit is contained in:
Clément Le Bihan
2023-11-26 18:37:05 +01:00
parent 624b640e01
commit 6a8fe074e0
4 changed files with 71 additions and 77 deletions
+3 -1
View File
@@ -21,9 +21,10 @@ type ScaffoldCCProps = {
children?: React.ReactNode;
routeName: string;
withPadding?: boolean;
enableScroll?: boolean;
};
const ScaffoldCC = ({ children, routeName, withPadding = true }: ScaffoldCCProps) => {
const ScaffoldCC = ({ children, routeName, withPadding = true, enableScroll = true }: ScaffoldCCProps) => {
const userQuery = useQuery(API.getUserInfo);
const screenSize = useBreakpointValue({ base: 'small', md: 'big' });
@@ -40,6 +41,7 @@ const ScaffoldCC = ({ children, routeName, withPadding = true }: ScaffoldCCProps
<Flex style={{ flex: 1, backgroundColor: '#cdd4fd' }}>
{screenSize === 'small' ? (
<ScaffoldMobileCC
enableScroll={enableScroll}
user={userQuery.data}
logo={logo}
routeName={routeName}