Skip to content

Commit

Permalink
fix(layout): update layout docs (#1550)
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaevAlexandr authored Apr 24, 2024
1 parent 02bf33c commit 575477a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/layout/LayoutProvider/__stories__/Layout.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ _You can override default values on project level:_
```tsx
import {ThemeProvider, LayoutTheme} from '@gravity-ui/uikit';

const theme: LayoutTheme = {
const config: LayoutTheme = {
spaceBaseSize: 5,
};

export const App = () => {
return (
<ThemeProvider layout={{theme}}>
<ThemeProvider layout={{config}}>
{...}
</ThemeProvider>
);
Expand Down Expand Up @@ -138,7 +138,7 @@ We use `mobile-first` approach. It means that you should adapt you app to deskto
}
};

<ThemeProvider layout={{theme: APP_LAYOUT_THEME}}>
<ThemeProvider layout={{config: APP_LAYOUT_THEME}}>
{...}
</ThemeProvider>
```
Expand Down

0 comments on commit 575477a

Please sign in to comment.