From 2d63b0ab6e01b0b669675279335059be13d82fce Mon Sep 17 00:00:00 2001 From: plate Date: Sun, 3 Nov 2024 08:48:43 +0000 Subject: [PATCH] copy button needs to be just an icon --- web/src/ui/timeline/menu/ViewSourceModal.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/web/src/ui/timeline/menu/ViewSourceModal.tsx b/web/src/ui/timeline/menu/ViewSourceModal.tsx index fa1840d..4900c40 100644 --- a/web/src/ui/timeline/menu/ViewSourceModal.tsx +++ b/web/src/ui/timeline/menu/ViewSourceModal.tsx @@ -22,15 +22,14 @@ interface ViewSourceModalProps { } // TODO: change the copy button's text on copy, without having typescript scream at me. -// will i need to make a component for the copy button and change its state? hmm +// will i need to make a component for the copy button and change its state??? const copyButtonOnClick = (evt: MemDBEvent) => { navigator.clipboard.writeText(JSON.stringify(evt, null, 4)) } -// TODO check with tulir that he in fact uses material design icons. i got the copy icon from google's site const ViewSourceModal = ({ evt }: ViewSourceModalProps) => { return
- +
}