diff --git a/web/src/components/ShortcutListView.tsx b/web/src/components/ShortcutListView.tsx index 23ae3f9..12f3190 100644 --- a/web/src/components/ShortcutListView.tsx +++ b/web/src/components/ShortcutListView.tsx @@ -44,15 +44,53 @@ const ShortcutListView: React.FC = (props: Props) => {
{shortcutList.map((shortcut) => { return ( -
-
-

+

+
+

handleCopyButtonClick(shortcut)}> o/ {shortcut.name}

- {shortcut.description &&

{shortcut.description}

} +
+ + + + + + + + + + + + + } + > +
+
+ {shortcut.description &&

{shortcut.description}

} + {/* TODO(steven): display shortcut's tags later */} + {shortcut.tags.length > 0 && false && (
{shortcut.tags.map((tag) => { @@ -63,41 +101,14 @@ const ShortcutListView: React.FC = (props: Props) => { ); })}
-
-
- - + )} +
+ +
+ + {shortcut.view} +
- - - - - - - - - - } - >
); diff --git a/web/src/types/modules/shortcut.d.ts b/web/src/types/modules/shortcut.d.ts index 6cf782e..6295ecd 100644 --- a/web/src/types/modules/shortcut.d.ts +++ b/web/src/types/modules/shortcut.d.ts @@ -16,6 +16,7 @@ interface Shortcut { description: string; visibility: Visibility; tags: string[]; + view: number; } interface ShortcutCreate {