♻️((react) migrate DataGrid faker usages to new API
We forgot to migrate those stories when upgrading faker.
This commit is contained in:
@@ -107,7 +107,7 @@ export const ClientSideWithPagination = () => {
|
|||||||
id: faker.string.uuid(),
|
id: faker.string.uuid(),
|
||||||
carName: faker.company.name(),
|
carName: faker.company.name(),
|
||||||
year: faker.date.past().getFullYear(),
|
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) => ({
|
Array.from(Array(5)).map((_value, index) => ({
|
||||||
id: `list key for element ${index}`,
|
id: `list key for element ${index}`,
|
||||||
title: faker.random.word(),
|
title: faker.word.sample(),
|
||||||
date: faker.date.past(1).toISOString(),
|
date: faker.date.past({ years: 1 }).toISOString(),
|
||||||
})),
|
})),
|
||||||
[]
|
[]
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user