Skip to content

Commit 7b84614

Browse files
committed
layout for story
1 parent 5ac30d5 commit 7b84614

File tree

4 files changed

+43
-15
lines changed

4 files changed

+43
-15
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
import type { JSX } from "react";
22

3+
import { Flex, Divider } from "@lib-components";
4+
import { Logo } from "@lib-theme";
5+
36
import useSidebarClasses from "@app-ui/layout/partials/Sidebar/styles";
47

58
type TProps = {};
69

710
export default function Sidebar({}: TProps): JSX.Element {
811
const classes = useSidebarClasses();
9-
return <div className={classes.root}>Sidebar</div>;
12+
return <Flex className={classes.root}>Sidebar</Flex>;
1013
}

apps/frontend/ui/src/layout/partials/Sidebar/stories.ts

-14
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
import type { Meta, StoryObj } from "@storybook/react";
2+
3+
import Sidebar from "@app-ui/layout/partials/Sidebar";
4+
5+
import { Flex } from "@lib-components";
6+
import { tokens } from "@lib-theme";
7+
8+
const meta: Meta = {
9+
title: "App/UI/Layout/Partials/Sidebar",
10+
component: Sidebar,
11+
};
12+
13+
export default meta;
14+
15+
type TStory = StoryObj<typeof Sidebar>;
16+
17+
export const Index: TStory = {
18+
render: () => (
19+
<div
20+
style={{
21+
display: "flex",
22+
backgroundColor: "black",
23+
gap: "1rem",
24+
padding: "1rem",
25+
}}
26+
>
27+
<Sidebar />
28+
<div
29+
style={{
30+
width: "100%",
31+
height: "600px",
32+
backgroundColor: tokens.colorNeutralBackground2,
33+
}}
34+
/>
35+
</div>
36+
),
37+
};

libs/components/src/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
export { Divider } from "@fluentui/react-components";
2+
13
export { Flex } from "@lib-components/layout";

0 commit comments

Comments
 (0)