Skip to content

Commit

Permalink
docs(infobanner): revert docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolai Lopin committed Sep 29, 2023
1 parent f2b3c4c commit 9c089ec
Showing 1 changed file with 4 additions and 26 deletions.
30 changes: 4 additions & 26 deletions src/components/InfoBanner/docs/InfoBanner.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { Meta, StoryObj } from '@storybook/react';
import React from 'react';
import { InfoBannerCard } from '../blocks/InfoBannerCard';
import { InfoBanner } from '../InfoBanner';

const meta: Meta = {
title: 'Components/InfoBanner',
component: InfoBannerCard,
component: InfoBanner,
args: {
title: 'Please do not share details about this information.',
description: 'In case of uncertainty please contact Fraud department.'
Expand All @@ -13,36 +12,18 @@ const meta: Meta = {

export default meta;

type Story = StoryObj<typeof InfoBannerCard>;
type Story = StoryObj<typeof InfoBanner>;

export const Default: Story = {
args: {
children: (
<>
<InfoBannerCard.Title>document.status.documents.title.no.vehicle</InfoBannerCard.Title>

<InfoBannerCard.Description>
document.status.documents.body.no.vehicle
</InfoBannerCard.Description>

<InfoBannerCard.Link>
vehicles.addVehicle.button
</InfoBannerCard.Link>
</>
)
}
};
export const Default: Story = {};

export const Success: Story = {
args: {
...Default.args,
variant: 'success'
}
};

export const Warning: Story = {
args: {
...Default.args,
variant: 'warning',
title: 'Possible Fraud',
description: 'This passenger has more than 20 linked accounts.'
Expand All @@ -51,21 +32,18 @@ export const Warning: Story = {

export const Error: Story = {
args: {
...Default.args,
variant: 'error'
}
};

export const Emphasized: Story = {
args: {
...Default.args,
emphasized: true
}
};

export const WithLink: Story = {
args: {
...Default.args,
linkText: 'More info',
linkUrl: 'https://free-now.com/'
}
Expand Down

0 comments on commit 9c089ec

Please sign in to comment.