Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
k70suK3-k06a7ash1 committed Feb 24, 2025
1 parent be2ab35 commit 9b1c605
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 16 deletions.
12 changes: 4 additions & 8 deletions src/components/atoms/icon/BottomAddSectionIcon/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { PlusCircle } from "lucide-react";
import { Spacer } from "../../Spacer";
import { TabItem } from "../../../../styles/tabItem";
import { useAddSection } from "@/hooks/useAddSection";
import { Button } from "@/components/ui/button";

Expand All @@ -11,14 +10,11 @@ export const BottomAddSection = () => {
<div>
<Spacer horizontal size={30} />
</div>
<div className="w-full">
<TabItem>
<PlusCircle className="text-xl" />
<Button onClick={handleAddSection}>
<PlusCircle className="text-xl" />

<div>Add Section</div>
<Button onClick={handleAddSection} />
</TabItem>
</div>
<div>Add Section</div>
</Button>
</div>
);
};
6 changes: 2 additions & 4 deletions src/components/atoms/icon/FileExportIcon/index.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
import type { DispatchWithoutAction } from "react";
import { Download } from "lucide-react";
import { Spacer } from "../../Spacer";
import { TabItem } from "../../../../styles/tabItem";
import { Button } from "@/components/ui/button";
type Props = {
handleMarkdownDownload: DispatchWithoutAction;
};
export const FileExport = ({ handleMarkdownDownload }: Props) => (
<TabItem>
<Button onClick={handleMarkdownDownload}>
{/* biome-ignore lint/a11y/noLabelWithoutControl: <explanation> */}
<label className="cursor-pointer flex h-full items-center">
<i>
<Download className="cursor-pointer text-xl" />
</i>
<Spacer horizontal size={4} />
<div>Export</div>
<Button onClick={handleMarkdownDownload} type="button" />
</label>
</TabItem>
</Button>
);
6 changes: 3 additions & 3 deletions src/components/atoms/icon/FileImportIcon/index.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import type { Dispatch, ChangeEvent } from "react";
import { FileInput } from "lucide-react";
import { Spacer } from "../../Spacer";
import { TabItem } from "../../../../styles/tabItem";
import { Button } from "@/components/ui/button";
type Props = {
handleClick: Dispatch<ChangeEvent<HTMLInputElement>>;
};
export const FileImport = ({ handleClick }: Props) => (
<TabItem>
<Button>
<label className="cursor-pointer flex h-full items-center">
<i>
<FileInput className="text-xl" />
Expand All @@ -20,5 +20,5 @@ export const FileImport = ({ handleClick }: Props) => (
className="hidden"
/>
</label>
</TabItem>
</Button>
);
1 change: 0 additions & 1 deletion src/components/atoms/icon/TemplateIcon/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { FileText } from "lucide-react";
import { Spacer } from "../../Spacer";
import { TabItem } from "../../../../styles/tabItem";
import type { LanguageKey, SeparateLevelType } from "@/types";
// import { SetTemplateModal } from "@/components/features/setTemplateModal";
import { languageAndReadmeMap } from "@/constants/languageAndReadmeMap";
Expand Down

0 comments on commit 9b1c605

Please sign in to comment.