From 933b6c1117fa4f1d32ce48c0a96119eb6f78bb55 Mon Sep 17 00:00:00 2001 From: Cole Bemis Date: Wed, 25 Dec 2024 20:56:56 -0800 Subject: [PATCH] Replace FileIcon16 with ExternalLinkIcon16 in note preview and note page components, updating the link text to "Open in GitHub" for clarity. --- src/components/note-preview-card.tsx | 6 +++--- src/routes/notes_.$.tsx | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/note-preview-card.tsx b/src/components/note-preview-card.tsx index 0d11b103..612c39de 100644 --- a/src/components/note-preview-card.tsx +++ b/src/components/note-preview-card.tsx @@ -19,7 +19,7 @@ import { DropdownMenu } from "./dropdown-menu" import { IconButton } from "./icon-button" import { CopyIcon16, - FileIcon16, + ExternalLinkIcon16, MoreIcon16, PinFillIcon16, PinIcon16, @@ -116,13 +116,13 @@ const _NotePreviewCard = React.memo(function NoteCard({ id }: NoteCardProps) { } + icon={} href={`https://github.com/${githubRepo?.owner}/${githubRepo?.name}/blob/main/${id}.md`} target="_blank" rel="noopener noreferrer" disabled={isSignedOut} > - Open file in GitHub + Open in GitHub } diff --git a/src/routes/notes_.$.tsx b/src/routes/notes_.$.tsx index 19c6569b..0ceda1ea 100644 --- a/src/routes/notes_.$.tsx +++ b/src/routes/notes_.$.tsx @@ -20,8 +20,8 @@ import { CopyIcon16, DotIcon8, EditIcon16, + ExternalLinkIcon16, EyeIcon16, - FileIcon16, FullwidthIcon16, MoreIcon16, NoteIcon16, @@ -413,13 +413,13 @@ function NotePage() { } + icon={} href={`https://github.com/${githubRepo?.owner}/${githubRepo?.name}/blob/main/${noteId}.md`} target="_blank" rel="noopener noreferrer" disabled={isSignedOut || !note} > - Open file in GitHub + Open in GitHub }