123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- import AlertLink from 'sentry/components/alertLink';
- import {IconDocs, IconGeneric, IconMail, IconStack, IconStar} from 'sentry/icons';
- export default {
- title: 'Components/Alerts/Alert Links',
- component: AlertLink,
- };
- export const Default = () => [
- <AlertLink to="/settings/account/notifications" key="1">
- Check out the notifications settings panel.
- </AlertLink>,
- <AlertLink to="/settings/account/notifications" priority="error" key="2">
- Do not forget to read the docs ya dum dum!
- </AlertLink>,
- <AlertLink to="/settings/account/notifications" priority="info" key="3">
- Install this thing or else!
- </AlertLink>,
- <AlertLink to="/settings/account/notifications" priority="success" key="4">
- Gj you did it. Now go here.
- </AlertLink>,
- <AlertLink to="/settings/account/notifications" priority="muted" key="5">
- I am saying nothing, ok?
- </AlertLink>,
- ];
- Default.storyName = 'Default';
- Default.parameters = {
- docs: {
- description: {
- story: 'A way to loudly link between different parts of the application',
- },
- },
- };
- export const WithAnIcon = () => [
- <AlertLink to="/settings/account/notifications" icon={<IconMail />} key="1">
- Gumbo beet greens corn soko endive gumbo gourd. Parsley shallot courgette tatsoi pea
- sprouts fava bean collard greens dandelion okra wakame tomato. Dandelion cucumber
- earthnut pea peanut soko zucchini.
- </AlertLink>,
- <AlertLink
- to="/settings/account/notifications"
- icon={<IconDocs />}
- priority="error"
- key="2"
- >
- Do not forget to read the docs ya dum dum!
- </AlertLink>,
- <AlertLink
- to="/settings/account/notifications"
- icon={<IconStack />}
- priority="info"
- key="3"
- >
- Install this thing or else!
- </AlertLink>,
- <AlertLink
- to="/settings/account/notifications"
- icon={<IconStar />}
- priority="success"
- key="4"
- >
- Gj you did it. Now go here.
- </AlertLink>,
- <AlertLink
- to="/settings/account/notifications"
- icon={<IconGeneric />}
- priority="muted"
- key="5"
- >
- I am saying nothing, ok?
- </AlertLink>,
- ];
- WithAnIcon.storyName = 'With an icon';
- WithAnIcon.parameters = {
- docs: {
- description: {
- story: 'You can optionally pass an icon src',
- },
- },
- };
- export const Small = () => [
- <AlertLink to="/settings/account/notifications" size="sm" key="1">
- Check out the notifications settings panel.
- </AlertLink>,
- <AlertLink to="/settings/account/notifications" priority="error" size="sm" key="2">
- Do not forget to read the docs ya dum dum!
- </AlertLink>,
- <AlertLink to="/settings/account/notifications" priority="info" size="sm" key="3">
- Install this thing or else!
- </AlertLink>,
- <AlertLink to="/settings/account/notifications" priority="success" size="sm" key="4">
- Gj you did it. Now go here.
- </AlertLink>,
- <AlertLink to="/settings/account/notifications" priority="muted" size="sm" key="5">
- I am saying nothing, ok?
- </AlertLink>,
- ];
- Small.storyName = 'Small';
- Small.parameters = {
- docs: {
- description: {
- story: 'You can optionally pass an icon src',
- },
- },
- };
|