From 3e871fa2acae42cfe51d7f5d4db8fc2e2fd7753f Mon Sep 17 00:00:00 2001 From: Aman Mahajan Date: Fri, 19 Aug 2022 12:06:36 -0500 Subject: [PATCH] Remove deprecated faker methods (#2993) Remove deprecated methods --- website/demos/AllFeatures.tsx | 4 ++-- website/demos/CommonFeatures.tsx | 4 ++-- website/demos/Grouping.tsx | 2 +- website/demos/HeaderFilters.tsx | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/website/demos/AllFeatures.tsx b/website/demos/AllFeatures.tsx index 214d883002..adf030d083 100644 --- a/website/demos/AllFeatures.tsx +++ b/website/demos/AllFeatures.tsx @@ -155,12 +155,12 @@ function createRows(): Row[] { title: faker.name.prefix(), firstName: faker.name.firstName(), lastName: faker.name.lastName(), - street: faker.address.streetName(), + street: faker.address.street(), zipCode: faker.address.zipCode(), date: faker.date.past().toLocaleDateString(), bs: faker.company.bs(), catchPhrase: faker.company.catchPhrase(), - companyName: faker.company.companyName(), + companyName: faker.company.name(), words: faker.lorem.words(), sentence: faker.lorem.sentence() }); diff --git a/website/demos/CommonFeatures.tsx b/website/demos/CommonFeatures.tsx index 0f71f68fbb..492e734192 100644 --- a/website/demos/CommonFeatures.tsx +++ b/website/demos/CommonFeatures.tsx @@ -256,11 +256,11 @@ function createRows(): readonly Row[] { rows.push({ id: i, title: `Task #${i + 1}`, - client: faker.company.companyName(), + client: faker.company.name(), area: faker.name.jobArea(), country: faker.address.country(), contact: faker.internet.exampleEmail(), - assignee: faker.name.findName(), + assignee: faker.name.fullName(), progress: Math.random() * 100, startTimestamp: now - Math.round(Math.random() * 1e10), endTimestamp: now + Math.round(Math.random() * 1e10), diff --git a/website/demos/Grouping.tsx b/website/demos/Grouping.tsx index b1e741b234..7634b2d0c3 100644 --- a/website/demos/Grouping.tsx +++ b/website/demos/Grouping.tsx @@ -129,7 +129,7 @@ function createRows(): readonly Row[] { year: 2015 + faker.datatype.number(3), country: faker.address.country(), sport: sports[faker.datatype.number(sports.length - 1)], - athlete: faker.name.findName(), + athlete: faker.name.fullName(), gold: faker.datatype.number(5), silver: faker.datatype.number(5), bronze: faker.datatype.number(5) diff --git a/website/demos/HeaderFilters.tsx b/website/demos/HeaderFilters.tsx index 93e7a6a883..39380e9899 100644 --- a/website/demos/HeaderFilters.tsx +++ b/website/demos/HeaderFilters.tsx @@ -330,7 +330,7 @@ function createRows() { complete: Math.min(100, Math.round(Math.random() * 110)), priority: ['Critical', 'High', 'Medium', 'Low'][Math.floor(Math.random() * 4)], issueType: ['Bug', 'Improvement', 'Epic', 'Story'][Math.floor(Math.random() * 4)], - developer: faker.name.findName() + developer: faker.name.fullName() }); } return rows;