From 0ad71a8ec1eae61c48a7c3b53e7d1ec057c88870 Mon Sep 17 00:00:00 2001 From: Nathan Vasse Date: Thu, 25 May 2023 10:40:15 +0200 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F((react)=20migrate=20DataGrid?= =?UTF-8?q?=20faker=20usages=20to=20new=20API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We forgot to migrate those stories when upgrading faker. --- packages/react/src/components/DataGrid/index.stories.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/react/src/components/DataGrid/index.stories.tsx b/packages/react/src/components/DataGrid/index.stories.tsx index caf4e16..1d112c2 100644 --- a/packages/react/src/components/DataGrid/index.stories.tsx +++ b/packages/react/src/components/DataGrid/index.stories.tsx @@ -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 }), })), [] ); @@ -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(), })), [] );