Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(layout): update layout docs #1550

Merged
merged 4 commits into from
Apr 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading