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,29 +0,0 @@
// eslint-disable-next-line
import { useArgs } from "@storybook/client-api";
import type { Meta } from "@storybook/react";
import { Pagination, PaginationProps } from "./Pagination";
const meta: Meta<typeof Pagination> = {
title: "Components/Pagination",
component: Pagination,
tags: ["v2"],
args: {
count: 50
}
};
export default meta;
// type Story = StoryObj<typeof Pagination>;
export const Primary = (args: PaginationProps) => {
const [, updateArgs] = useArgs();
return (
<Pagination
{...args}
onChangePage={(page) => updateArgs({ page })}
onChangePerPage={(perPage) => updateArgs({ perPage, page: 1 })}
/>
);
};
@@ -49,7 +49,7 @@ export const Pagination = ({
return (
<div
className={twMerge(
"flex w-full items-center justify-end border-t border-mineshaft-600 bg-mineshaft-800 py-3 px-4 text-white",
"flex w-full items-center justify-end border-t border-mineshaft-600 bg-mineshaft-800 px-4 py-3 text-white",
className
)}
>