mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 17:05:18 +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
35 lines
689 B
TypeScript
35 lines
689 B
TypeScript
import React from "react";
|
|
import { Meta, StoryObj } from "@storybook/react";
|
|
|
|
import Button from "components/buttons/Button";
|
|
|
|
import ListItem from "./ListItem";
|
|
|
|
const meta: Meta<typeof ListItem> = {
|
|
title: "Components/ListItem",
|
|
component: ListItem,
|
|
args: {
|
|
graphic: "file-configuration-profile",
|
|
title: "List Item Title",
|
|
details: (
|
|
<>
|
|
<span>Details </span>
|
|
<span> • </span>
|
|
<span> more details</span>
|
|
</>
|
|
),
|
|
actions: (
|
|
<>
|
|
<Button>button 1</Button>
|
|
<Button>Button 2</Button>
|
|
</>
|
|
),
|
|
},
|
|
};
|
|
|
|
export default meta;
|
|
|
|
type Story = StoryObj<typeof ListItem>;
|
|
|
|
export const Basic: Story = {};
|