diff --git a/.storybook/preview.tsx b/.storybook/preview.tsx index f443173..d1aae34 100644 --- a/.storybook/preview.tsx +++ b/.storybook/preview.tsx @@ -45,7 +45,7 @@ export const recursiveNestedProps = ( const preview = { decorators: [ (Story, data) => { - const [isDark, setDark] = React.useState(false); + const [isDark, setDark] = React.useState(true); const parsedProps = {} as Record; const props = data.allArgs; diff --git a/src/app/components/button/button.tsx b/src/app/components/button/button.tsx index d1f8224..18ab831 100644 --- a/src/app/components/button/button.tsx +++ b/src/app/components/button/button.tsx @@ -11,7 +11,6 @@ import { cn } from "@/bootstrap/helpers/lib/ui-utils"; export default class Button extends BaseView { protected Build(props: BuildProps): ReactNode { const { vm } = props; - return ( {vm.props.title} diff --git a/src/app/components/button/stories/Button.stories.tsx b/src/app/components/button/stories/Button.stories.tsx index 353027e..ef10dd0 100644 --- a/src/app/components/button/stories/Button.stories.tsx +++ b/src/app/components/button/stories/Button.stories.tsx @@ -1,7 +1,12 @@ +import dashboardAppModule from "@/app/[lang]/dashboard/module/dashboard-app-module"; +import CreateRandomInvoiceButtonVM from "@/app/[lang]/dashboard/vm/create-random-invoice-button-vm"; import Button from "@/app/components/button/button"; +import { DiContext, useDI } from "@/bootstrap/di/di-context"; import Story from "@/bootstrap/helpers/view/storybook-base-template-type"; import getArgVM from "@/bootstrap/helpers/view/storybook-with-arg-vm"; +import createInvoiceUsecase from "@/feature/core/invoice/domain/usecase/create-invoice-usecase"; import type { Meta } from "@storybook/react"; +import { useRef } from "react"; // More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export const meta: Meta = { @@ -29,3 +34,19 @@ export const Primary: Story = { return