Skip to content

Commit c0e3cab

Browse files
committed
chore: renamed the left prop as sidebar
1 parent 09f6833 commit c0e3cab

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/components/PageLayout/PageLayout.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
flex-direction: column;
99
}
1010

11-
&__left {
11+
&__sidebar {
1212
display: flex;
1313
flex-direction: column;
1414
}

lib/components/PageLayout/index.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ import { useDevice } from '../../hooks/useDevice';
33
import './PageLayout.scss';
44

55
type PageLayoutProps = {
6-
left?: JSX.Element;
6+
sidebar?: JSX.Element;
77
};
88

9-
export const PageLayout: React.FC<React.PropsWithChildren<PageLayoutProps>> = ({children, left}) => {
9+
export const PageLayout: React.FC<React.PropsWithChildren<PageLayoutProps>> = ({children, sidebar}) => {
1010
const {isMobile} = useDevice();
1111

1212
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>}
1414
{children && <div className="derivs-page-layout__content">{children}</div>}
1515
</div>
1616
}

0 commit comments

Comments
 (0)