Skip to content

Commit

Permalink
feat(manager-react-components): update stories
Browse files Browse the repository at this point in the history
ref: MANAGER-15698

Signed-off-by: Alex Boungnaseng <[email protected]>
  • Loading branch information
aboungnaseng-ovhcloud committed Dec 4, 2024
1 parent f289e6f commit 8a5d55b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const DatagridStory = (args) => {
export const Basic = DatagridStory.bind({});

Basic.args = {
columns: columns,
columns,
items: [...Array(10).keys()].map((_, i) => ({
label: `Item #${i}`,
price: Math.floor(1 + Math.random() * 100),
Expand All @@ -75,14 +75,14 @@ Basic.args = {
export const Empty = DatagridStory.bind({});

Empty.args = {
columns: columns,
columns,
items: [],
};

export const Sortable = DatagridStory.bind({});

Sortable.args = {
columns: columns,
columns,
items: [...Array(10).keys()].map((_, i) => ({
label: `Item #${i}`,
price: Math.floor(1 + Math.random() * 100),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const DatagridStory = ({
export const Basic = DatagridStory.bind({});

Basic.args = {
columns: columns,
columns,
items: [...Array(50).keys()].map((_, i) => ({
label: `Item #${i}`,
price: Math.floor(1 + Math.random() * 100),
Expand All @@ -99,14 +99,14 @@ Basic.args = {
export const Empty = DatagridStory.bind({});

Empty.args = {
columns: columns,
columns,
items: [],
};

export const Sortable = DatagridStory.bind({});

Sortable.args = {
columns: columns,
columns,
items: [...Array(10).keys()].map((_, i) => ({
label: `Item #${i}`,
price: Math.floor(1 + Math.random() * 100),
Expand All @@ -122,5 +122,11 @@ export default {
status: {
type: 'deprecated',
},
docs: {
description: {
component:
'The `Datagrid` component in pagination mode is now `deprecated`.',
},
},
},
};

0 comments on commit 8a5d55b

Please sign in to comment.