Commit c0e3cab 1 parent 09f6833 commit c0e3cab Copy full SHA for c0e3cab
File tree 2 files changed +4
-4
lines changed
lib/components/PageLayout
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 8
8
flex-direction : column ;
9
9
}
10
10
11
- & __left {
11
+ & __sidebar {
12
12
display : flex ;
13
13
flex-direction : column ;
14
14
}
Original file line number Diff line number Diff line change @@ -3,14 +3,14 @@ import { useDevice } from '../../hooks/useDevice';
3
3
import './PageLayout.scss' ;
4
4
5
5
type PageLayoutProps = {
6
- left ?: JSX . Element ;
6
+ sidebar ?: JSX . Element ;
7
7
} ;
8
8
9
- export const PageLayout : React . FC < React . PropsWithChildren < PageLayoutProps > > = ( { children, left } ) => {
9
+ export const PageLayout : React . FC < React . PropsWithChildren < PageLayoutProps > > = ( { children, sidebar } ) => {
10
10
const { isMobile} = useDevice ( ) ;
11
11
12
12
return < div className = "derivs-page-layout" >
13
- { left && ! isMobile && < div className = "derivs-page-layout__left " > { left } </ div > }
13
+ { sidebar && ! isMobile && < div className = "derivs-page-layout__sidebar " > { sidebar } </ div > }
14
14
{ children && < div className = "derivs-page-layout__content" > { children } </ div > }
15
15
</ div >
16
16
}
You can’t perform that action at this time.
0 commit comments