feat: renamed old frontend and fixed some minor bugs

This commit is contained in:
=
2025-01-06 14:56:49 +05:30
parent 8c902d7699
commit 54377a44d3
2577 changed files with 35240 additions and 35116 deletions
@@ -1,32 +0,0 @@
import type { Meta, StoryObj } from "@storybook/react";
import { Button } from "../Button";
import { Drawer, DrawerContent, DrawerContentProps, DrawerTrigger } from "./Drawer";
const meta: Meta<typeof Drawer> = {
title: "Components/Drawer",
component: Drawer,
tags: ["v2"],
argTypes: {}
};
export default meta;
type Story = StoryObj<typeof DrawerContent>;
const Template = (args: DrawerContentProps) => (
<Drawer>
<DrawerTrigger asChild>
<Button>Open</Button>
</DrawerTrigger>
<DrawerContent {...args}>Hello world</DrawerContent>
</Drawer>
);
export const Basic: Story = {
render: (args) => <Template {...args} />,
args: {
title: "Title",
subTitle: "Something as subtitle",
footerContent: "footer content"
}
};
+1 -1
View File
@@ -59,7 +59,7 @@ export const DrawerContent = forwardRef<HTMLDivElement, DrawerContentProps>(
<IconButton
variant="plain"
ariaLabel="close"
className="absolute top-4 right-6 rounded text-bunker-400 hover:text-bunker-50"
className="absolute right-6 top-4 rounded text-bunker-400 hover:text-bunker-50"
>
<FontAwesomeIcon icon={faTimes} size="lg" className="cursor-pointer" />
</IconButton>