From e75f6bd1cf093df9982fa0a1d4209e6f23a0fe31 Mon Sep 17 00:00:00 2001 From: Lahiru Ranasinghe <102274194+lahirurane-rau@users.noreply.github.com> Date: Tue, 15 Aug 2023 11:46:17 +1000 Subject: [PATCH] Fixes AdminUI overflow bug (#8754) introduced in #8702 --- .../src/admin-ui/components/PageContainer.tsx | 25 ++++++------------- 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/packages/core/src/admin-ui/components/PageContainer.tsx b/packages/core/src/admin-ui/components/PageContainer.tsx index 7bf6821481b..0c72348987a 100644 --- a/packages/core/src/admin-ui/components/PageContainer.tsx +++ b/packages/core/src/admin-ui/components/PageContainer.tsx @@ -2,7 +2,7 @@ /** @jsx jsx */ import { jsx, useTheme } from '@keystone-ui/core'; -import { Dispatch, Fragment, HTMLAttributes, ReactNode, SetStateAction, useState } from 'react'; +import { Fragment, HTMLAttributes, ReactNode, useState } from 'react'; import { MenuIcon, XCircleIcon } from '@keystone-ui/icons'; import { Navigation } from './Navigation'; @@ -46,7 +46,6 @@ const Sidebar = ({ ...props }: HTMLAttributes & { isSidebarOpen: boolean; - setIsSidebarOpen: Dispatch>; }) => { // const { colors } = useTheme(); @@ -54,7 +53,7 @@ const Sidebar = ({
-
{ - props.setIsSidebarOpen(!isSidebarOpen); - }} - css={{ - float: 'right', - padding: '10px', - display: 'block', - '@media (min-width: 576px)': { display: 'none' }, - }} - > - -
{title ? `Keystone - ${title}` : 'Keystone'} {header}
- + {children}