mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-06-28 16:20:34 +08:00
cb317ebccb
* Storybook setup Storybook can be started using `npm run storybook` * moved files and bugfix Moved component files into their own directory and moved stories next to them. Fixed a bug with loading images * prettier and bugfix * prettier and bugfix * Absolute Import in Header.tsx * import fix some imports did not work after merging * Storybook update for chakra ui to properly work * Prettier main.js * comment in preview.js about hacky solution * webpack final update and prettier update to preview * Updated website/readme to include storybook description * prettier... * Delete docker-compose 2.yaml
26 lines
615 B
React
26 lines
615 B
React
import { SessionContext } from "next-auth/react";
|
|
import React from "react";
|
|
|
|
import UserMenu from "./UserMenu";
|
|
|
|
export default {
|
|
title: "Header/UserMenu",
|
|
component: UserMenu,
|
|
};
|
|
|
|
const Template = (args) => {
|
|
var { session } = args;
|
|
return (
|
|
<SessionContext.Provider value={session}>
|
|
<div className="flex flex-col">
|
|
<div className="self-end">
|
|
<UserMenu {...args} />
|
|
</div>
|
|
</div>
|
|
</SessionContext.Provider>
|
|
);
|
|
};
|
|
|
|
export const Default = Template.bind({});
|
|
Default.args = { session: { data: { user: { name: "StoryBook user" } }, status: "authenticated" } };
|