[logout] fix storybook
@@ -8,13 +8,12 @@ import {
AboutModalContent,
AppLayout,
AppTopMenu,
- PfDropdownItem,
PfVerticalNavItem,
} from '../../src';
-import { Link } from 'react-router-dom';
import { withState } from '@dump247/storybook-state';
const stories = storiesOf('Layout/AppLayout', module);
const logDropdownItemSelection = action('select dropdown item log');
+const logLogout = action('logout');
stories.add(
'sample usage',
@@ -59,14 +58,8 @@ stories.add(
showNavigation={true}
pictograph={text('Application title', 'Syndesis')}
appNav={
- <AppTopMenu username={'developer'}>
- <PfDropdownItem>
- <Link
- to={'/logout'}
- className="pf-c-dropdown__menu-item"
- children={'Logout'}
- />
- </PfDropdownItem>
+ <AppTopMenu onSelectLogout={logLogout} username={'developer'}>
+ Logout
</AppTopMenu>
}
verticalNav={[
