♻️(react) migrate faker api

faker-js introduced breaking changes in their APIs, so we needed to migrate
our usages.
This commit is contained in:
Nathan Vasse
2023-05-12 14:35:59 +02:00
committed by NathanVss
parent ed2409e50c
commit e7fc782b1c
5 changed files with 44 additions and 44 deletions

View File

@@ -18,7 +18,7 @@ const Template: ComponentStory<typeof Select> = (args) => (
</div>
);
const CITIES = Array.from({ length: 10 }).map(() => faker.address.city());
const CITIES = Array.from({ length: 10 }).map(() => faker.location.city());
const OPTIONS = CITIES.map((city) => ({
label: city,
value: city.toLowerCase(),