From 808e3ec8d65e9317879db8227adb4cf0b6c27c45 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Mon, 11 Jul 2022 14:58:04 -0700 Subject: [PATCH] Add archive to command bar --- packages/web/pages/[username]/[slug]/index.tsx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/packages/web/pages/[username]/[slug]/index.tsx b/packages/web/pages/[username]/[slug]/index.tsx index 20ea8cf16..8320fcd16 100644 --- a/packages/web/pages/[username]/[slug]/index.tsx +++ b/packages/web/pages/[username]/[slug]/index.tsx @@ -142,17 +142,24 @@ export default function Home(): JSX.Element { { id: 'open', section: 'Article', - name: 'Open original article page', + name: 'Open original article', shortcut: ['o'], perform: () => actionHandler('openOriginalArticle') }, { id: 'back', - section: 'Article', - name: 'Back to library', + section: 'Navigation', + name: 'Return to library', shortcut: ['u'], perform: () => router.push(`/home`), }, + { + id: 'archive', + section: 'Article', + name: 'Archive current item', + shortcut: ['e'], + perform: () => actionHandler('archive'), + }, { id: 'highlight', section: 'Article',