mirror of
https://github.com/empayre/fleet.git
synced 2024-11-07 01:15:22 +00:00
da20214938
This adds a new ListItem component and FileUploader component and updates the Custom settings and scripts page to use this new ListItem component. This List component centralises where the markup and styles live. We still need to update the bootstrap list item and eula upload list item but will do that in the future. - [x] Manual QA for all new/changed functionality
25 lines
551 B
TypeScript
25 lines
551 B
TypeScript
import { Meta, StoryObj } from "@storybook/react";
|
|
|
|
import FileUploader from "./FileUploader";
|
|
|
|
const meta: Meta<typeof FileUploader> = {
|
|
title: "Components/FileUploader",
|
|
component: FileUploader,
|
|
args: {
|
|
graphicName: "file-configuration-profile",
|
|
message: "The main message",
|
|
additionalInfo: "The additional message",
|
|
accept: ".pdf",
|
|
isLoading: false,
|
|
onFileUpload: () => {
|
|
alert("File uploaded!");
|
|
},
|
|
},
|
|
};
|
|
|
|
export default meta;
|
|
|
|
type Story = StoryObj<typeof FileUploader>;
|
|
|
|
export const Basic: Story = {};
|