fix check-types

This commit is contained in:
jenny-s51 2020-09-23 10:55:05 -04:00
parent 7ba5ef7b5e
commit 87363f69cd

View file

@ -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,
}; };