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 { 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,
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue