vega-frontend-monorepo/libs/ui-toolkit/src/components/nav/nav.stories.tsx
Dexter Edwards 3486244137
feat(2033): reorganise token site (#2313)
* chore: make proposals the home page, redirect home to proposals

* chore: reorganise the remainder of the routes

* chore: small styling bug

* fix: nav links highlighted incorrectly

* feat: rename title, rename routes to new structure, add redirects

* chore: make navbar full width

* feat: new navbar bases on trading navbar

* chore: revert change to the width of the page

* chore: make navbar reactive and support draw

* chore: move draw into its' own file

* chore: move nav into toolkit

* style: lint

* chore: trading to use navbar

* fix: uppercase navbar title

* chore: add test

* fix: merge issue

* style: lint

* test: adjust test URLs

* test: more route adjsuting

* test: fix route name

* test: change URL to be new url

* test: more path corrections

* test: more path fixes

* style: lint

* test: minor test fixes

* test: more test fixes

* test: fix incorrect paths

* test: green build plz

* chore: adjust name as per PR comments

* test: fix path

* test: fix incorrect path

* test: final test fix

* test: plz green
2022-12-06 16:00:37 +00:00

35 lines
774 B
TypeScript

import type { Meta, Story } from '@storybook/react';
import { ButtonLink } from '../button';
import { VegaLogo } from '../vega-logo';
import { Nav } from './nav';
export default {
component: Nav,
title: 'Nav',
} as Meta;
const Template: Story = ({ icon, title, titleContent }) => (
<div className="flex w-full">
<Nav icon={icon} title={title} titleContent={titleContent}>
<div className="mx-4">
<ButtonLink>Some link</ButtonLink>{' '}
</div>
<div className="mx-4">
<ButtonLink>Some other link</ButtonLink>
</div>
</Nav>
</div>
);
const props = {
icon: <VegaLogo />,
title: 'Title',
titleContent: <div>Content next to title</div>,
};
export const Default = Template.bind({});
Default.args = {
...props,
};