From 026f83c9b322eacf92447a6db9ad0280bcd9a031 Mon Sep 17 00:00:00 2001 From: Cole Bemis Date: Thu, 30 Jan 2025 00:03:32 -0800 Subject: [PATCH] Add printer icon and print option to note page --- src/components/icons.tsx | 12 ++++++++++++ src/routes/__root.tsx | 2 +- src/routes/notes_.$.tsx | 4 ++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/src/components/icons.tsx b/src/components/icons.tsx index a63a1f28..2de608d0 100644 --- a/src/components/icons.tsx +++ b/src/components/icons.tsx @@ -288,6 +288,18 @@ export function PaperclipIcon16(props: IconProps) { ) } +export function PrinterIcon16(props: IconProps) { + return ( + + + + ) +} + export function FileIcon16(props: IconProps) { return ( diff --git a/src/routes/__root.tsx b/src/routes/__root.tsx index 35e8da54..01ca4696 100644 --- a/src/routes/__root.tsx +++ b/src/routes/__root.tsx @@ -87,7 +87,7 @@ function RootComponent() { return (
{isSignedOut ? ( diff --git a/src/routes/notes_.$.tsx b/src/routes/notes_.$.tsx index 9e17c13f..493f7b73 100644 --- a/src/routes/notes_.$.tsx +++ b/src/routes/notes_.$.tsx @@ -28,6 +28,7 @@ import { PaperclipIcon16, PinFillIcon16, PinIcon16, + PrinterIcon16, ShareIcon16, TrashIcon16, UndoIcon16, @@ -465,6 +466,9 @@ function NotePage() { > Export as Gist + } onSelect={() => window.print()}> + Print +