fix check-types
This commit is contained in:
parent
7ba5ef7b5e
commit
87363f69cd
1 changed files with 3 additions and 4 deletions
|
@ -1,15 +1,14 @@
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { Meta, Story } from "@storybook/react";
|
import { Meta, Story } from "@storybook/react";
|
||||||
import { ExternalLink } from "../components/external-link/ExternalLink";
|
import { ExternalLink } from "../components/external-link/ExternalLink";
|
||||||
|
import { ButtonProps } from "@patternfly/react-core";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
title: "External link",
|
title: "External link",
|
||||||
component: ExternalLink,
|
component: ExternalLink,
|
||||||
} as Meta;
|
} as Meta;
|
||||||
|
|
||||||
const Template: Story<React.HTMLProps<HTMLAnchorElement>> = (args) => (
|
const Template: Story<ButtonProps> = (args) => <ExternalLink {...args} />;
|
||||||
<ExternalLink {...args} />
|
|
||||||
);
|
|
||||||
|
|
||||||
export const WithTitle = Template.bind({});
|
export const WithTitle = Template.bind({});
|
||||||
WithTitle.args = {
|
WithTitle.args = {
|
||||||
|
@ -32,5 +31,5 @@ export const DisabledLink = Template.bind({});
|
||||||
DisabledLink.args = {
|
DisabledLink.args = {
|
||||||
title: "Disabled link",
|
title: "Disabled link",
|
||||||
href: "http://some-other-link.nl/super",
|
href: "http://some-other-link.nl/super",
|
||||||
isDisabled: "true",
|
isAriaDisabled: true,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue