-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
734c1ae
commit be2ab35
Showing
7 changed files
with
29 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,19 @@ | ||
import type { DispatchWithoutAction } from "react"; | ||
import { FileUp } from "lucide-react"; | ||
import { Spacer } from "../../Spacer"; | ||
import { IncludeIconButton } from "@/styles/IncludeIconButton"; | ||
import { Button } from "@/components/ui/button"; | ||
type Props = { | ||
handleApply: DispatchWithoutAction; | ||
}; | ||
export const ApplyTemplateIcon = ({ handleApply }: Props) => ( | ||
<IncludeIconButton> | ||
<Button onClick={handleApply} type="button"> | ||
{/* biome-ignore lint/a11y/noLabelWithoutControl: <explanation> */} | ||
<label className="cursor-pointer flex h-full items-center"> | ||
<i> | ||
<FileUp className="text-xl" /> | ||
</i> | ||
<Spacer horizontal size={4} /> | ||
<div>Apply the template</div> | ||
<Button onClick={handleApply} type="button" className="hidden" /> | ||
</label> | ||
</IncludeIconButton> | ||
</Button> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,18 @@ | ||
import { Eraser } from "lucide-react"; | ||
import { Spacer } from "../../Spacer"; | ||
import { TabItem } from "../../../../styles/tabItem"; | ||
import { useMarkdownContext } from "@/context/MarkdownContext"; | ||
import { Button } from "@/components/ui/button"; | ||
|
||
export const ClearIcon = () => { | ||
const { setMarkdown } = useMarkdownContext(); | ||
|
||
return ( | ||
<TabItem> | ||
{/* biome-ignore lint/a11y/noLabelWithoutControl: <explanation> */} | ||
<label className="cursor-pointer flex h-full items-center"> | ||
<i> | ||
<Eraser className="text-xl" /> | ||
</i> | ||
<Spacer horizontal size={4} /> | ||
<div>Clear</div> | ||
<button onClick={() => setMarkdown([])} type="button" /> | ||
</label> | ||
</TabItem> | ||
<Button onClick={() => setMarkdown([])}> | ||
<i> | ||
<Eraser className="text-xl" /> | ||
</i> | ||
<Spacer horizontal size={4} /> | ||
<div>Clear</div> | ||
</Button> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.