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 { Meta, Story } from "@storybook/react";
import { ExternalLink } from "../components/external-link/ExternalLink";
import { ButtonProps } from "@patternfly/react-core";
export default {
title: "External link",
component: ExternalLink,
} as Meta;
const Template: Story<React.HTMLProps<HTMLAnchorElement>> = (args) => (
<ExternalLink {...args} />
);
const Template: Story<ButtonProps> = (args) => <ExternalLink {...args} />;
export const WithTitle = Template.bind({});
WithTitle.args = {
@ -32,5 +31,5 @@ export const DisabledLink = Template.bind({});
DisabledLink.args = {
title: "Disabled link",
href: "http://some-other-link.nl/super",
isDisabled: "true",
isAriaDisabled: true,
};