Skip to content

Commit

Permalink
Ext: add missing commit for shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
PopDaph committed Dec 12, 2024
1 parent e008bb9 commit 695468e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion extension/app/src/pages/MainPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ export const MainPage = ({
}: ProtectedRouteChildrenProps) => {
const { handleSelectWorkspace } = useAuth();

const isMac = /macintosh|mac os x/i.test(navigator.userAgent);
const shortcut = isMac ? "⇧⌘E" : "⇧+Ctrl+E";

return (
<>
<BarHeader
Expand Down Expand Up @@ -91,7 +94,7 @@ export const MainPage = ({
/>
<div className="flex items-start justify-between">
<div className="fixed bottom-0 right-0 z-10 p-2 text-sm element">
<p className="text-sm font-normal text-element-700">⇧⌘E</p>
<p className="text-sm font-normal text-element-700">{shortcut}</p>
</div>
</div>
<div className="h-full w-full pt-28 max-w-4xl mx-auto flex justify-center">
Expand Down

0 comments on commit 695468e

Please sign in to comment.