Skip to content

Commit

Permalink
♻️((react) migrate DataGrid faker usages to new API
Browse files Browse the repository at this point in the history
We forgot to migrate those stories when upgrading faker.
  • Loading branch information
NathanVss committed Jun 6, 2023
1 parent 787bd3d commit 0ad71a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/react/src/components/DataGrid/index.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export const ClientSideWithPagination = () => {
id: faker.string.uuid(),
carName: faker.company.name(),
year: faker.date.past().getFullYear(),
price: +faker.commerce.price(5000, 5005),
price: +faker.commerce.price({ min: 5000, max: 5005 }),
})),
[]
);
Expand Down Expand Up @@ -256,8 +256,8 @@ export const DataListOnly = () => {
() =>
Array.from(Array(5)).map((_value, index) => ({
id: `list key for element ${index}`,
title: faker.random.word(),
date: faker.date.past(1).toISOString(),
title: faker.word.sample(),
date: faker.date.past({ years: 1 }).toISOString(),
})),
[]
);
Expand Down

0 comments on commit 0ad71a8

Please sign in to comment.