Skip to content

Commit

Permalink
clean stories
Browse files Browse the repository at this point in the history
  • Loading branch information
slax57 committed Apr 26, 2023
1 parent a5edec7 commit e331902
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 deletions.
6 changes: 0 additions & 6 deletions packages/ra-ui-materialui/src/layout/AppBar.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,6 @@ export const Color = () => (
</Wrapper>
);

export const AlwaysOn = () => (
<Wrapper>
<AppBar alwaysOn />
</Wrapper>
);

export const Position = () => (
<Wrapper>
<AppBar position="sticky" />
Expand Down
15 changes: 3 additions & 12 deletions packages/ra-ui-materialui/src/layout/Layout.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import { QueryClient, QueryClientProvider } from 'react-query';
import { MemoryRouter } from 'react-router';

import { defaultTheme } from '../defaultTheme';
import { AppBar } from './AppBar';
import { Layout } from './Layout';
import { Title } from './Title';

Expand Down Expand Up @@ -93,17 +92,9 @@ const Menu = () => (
</MenuItem>
</MenuList>
);
const BasicLayout = props => <Layout menu={Menu} {...props} />;

const BasicLayout = props => <Layout menu={Menu} {...props} />;
export const Basic = () => <Wrapper layout={BasicLayout} />;

const AlwaysOnAppBar = () => <AppBar alwaysOn />;
const AlwaysOnLayout = props => (
<BasicLayout appBar={AlwaysOnAppBar} {...props} />
);

export const AlwaysOn = () => <Wrapper layout={AlwaysOnLayout} />;

const AlwaysOnLayout2 = props => <BasicLayout appBarAlwaysOn {...props} />;

export const AlwaysOn2 = () => <Wrapper layout={AlwaysOnLayout2} />;
const AppBarAlwaysOnLayout = props => <BasicLayout appBarAlwaysOn {...props} />;
export const AppBarAlwaysOn = () => <Wrapper layout={AppBarAlwaysOnLayout} />;

0 comments on commit e331902

Please sign in to comment.