♻️(react) remove faker usage from stories

Random data in stories was causing Chromatic to detect changes during
each build.
This commit is contained in:
Nathan Vasse
2024-03-18 16:32:01 +01:00
committed by NathanVss
parent f10e0e2fde
commit 9c614953b8
12 changed files with 50 additions and 78 deletions

View File

@@ -1,6 +1,5 @@
import { Meta } from "@storybook/react";
import React, { useEffect, useRef, useState } from "react";
import { faker } from "@faker-js/faker";
import {
FileUploader,
FileUploaderRefType,
@@ -8,10 +7,10 @@ import {
import { Button } from ":/components/Button";
const FAKE_FILES = [
new File(["42"], faker.lorem.sentence(5) + "pdf"),
new File(["42"], faker.lorem.sentence(1) + "pdf"),
new File(["42"], faker.lorem.sentence(2) + "pdf"),
new File(["42"], faker.lorem.sentence(3) + "pdf"),
new File(["42"], "Adhuc civis creber super amita.pdf"),
new File(["42"], "CV.pdf"),
new File(["42"], "Adhuc civis.pdf"),
new File(["42"], "Adhuc civis creber.pdf"),
];
const meta: Meta<typeof FileUploader> = {