Remove non-intended changes

Signed-off-by: Philipp Hugenroth <philipph@spotify.com>
This commit is contained in:
Philipp Hugenroth
2023-05-05 16:03:09 +02:00
parent 2a34253e2a
commit 0b03f31735
2 changed files with 24 additions and 125 deletions
@@ -33,23 +33,23 @@ import { SidebarPinStateProvider } from './SidebarPinStateContext';
export type SidebarPageClassKey = 'root';
type PageStyleProps = { sidebarConfig: SidebarConfig; isPinned: boolean };
const useStyles = makeStyles<BackstageTheme, PageStyleProps>(
const useStyles = makeStyles<
BackstageTheme,
{ sidebarConfig: SidebarConfig; isPinned: boolean }
>(
theme => ({
root: {
width: '100%',
transition: 'padding-left 0.1s ease-out',
isolation: 'isolate',
[theme.breakpoints.up('sm')]: {
paddingLeft: (props: PageStyleProps) =>
paddingLeft: props =>
props.isPinned
? props.sidebarConfig.drawerWidthOpen
: props.sidebarConfig.drawerWidthClosed,
},
[theme.breakpoints.down('xs')]: {
paddingBottom: (props: PageStyleProps) =>
props.sidebarConfig.mobileSidebarHeight,
paddingBottom: props => props.sidebarConfig.mobileSidebarHeight,
},
},
content: {