mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 21:47:20 +00:00
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
24 lines
551 B
TypeScript
24 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 = {};
|