Skip to content

Commit

Permalink
update emptyState stories
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanMarcMilletScality committed Jun 6, 2024
1 parent 5bb6839 commit 392377e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/lib/components/emptystate/Emptystate.component.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import styled, { css } from 'styled-components';

import { spacing } from '../../spacing';
import { Button } from '../buttonv2/Buttonv2.component';
import { Icon, IconName } from '../icon/Icon.component';
import { LargeText } from '../text/Text.component';
import { CoreUITheme } from '../../style/theme';
import { useHistory } from 'react-router';
type Props = {

export type Props = {
listedResource: {
singular: string;
plural: string;
Expand Down
23 changes: 15 additions & 8 deletions stories/emptystate.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@
import { EmptyState } from '../src/lib/components/emptystate/Emptystate.component';
import { Meta, StoryObj } from '@storybook/react';
import {
EmptyState,
Props,
} from '../src/lib/components/emptystate/Emptystate.component';
type Story = StoryObj<Props>;

export default {
const meta: Meta<Props> = {
title: 'Components/Data Display/EmptyState',
component: EmptyState,
args: {
icon: 'Node-backend',
label: 'Node',
listedResource: {
singular: 'resource',
plural: 'resources',
},
},
};

export const Default = {};
export default meta;

export const Default: Story = {};

export const WithLink = {
export const WithLink: Story = {
args: {
link: '',
history: {
push: () => {},
},
},
};

0 comments on commit 392377e

Please sign in to comment.