Remove non-intended changes
Signed-off-by: Philipp Hugenroth <philipph@spotify.com>
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user