Skip to content

Commit

Permalink
Revert "Display the correct button based on the user platform (Bartos…
Browse files Browse the repository at this point in the history
…zJarocki#46)"

This reverts commit 732668a.
  • Loading branch information
BartoszJarocki committed Jan 16, 2024
1 parent 732668a commit 787afb5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
4 changes: 1 addition & 3 deletions src/components/command-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,13 @@ import {
} from "@/components/ui/command";
import { Button } from "./ui/button";
import { CommandIcon } from "lucide-react";
import { useOS } from "@/hooks/useOS";

interface Props {
links: { url: string; title: string }[];
}

export const CommandMenu = ({ links }: Props) => {
const [open, setOpen] = React.useState(false);
const os = useOS();

React.useEffect(() => {
const down = (e: KeyboardEvent) => {
Expand All @@ -40,7 +38,7 @@ export const CommandMenu = ({ links }: Props) => {
<p className="fixed bottom-0 left-0 right-0 hidden border-t border-t-muted bg-white p-1 text-center text-sm text-muted-foreground print:hidden xl:block">
Press{" "}
<kbd className="pointer-events-none inline-flex h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[10px] font-medium text-muted-foreground opacity-100">
<span className="text-xs">{os === "mac" ? "⌘" : "CTRL"}</span>+ J
<span className="text-xs"></span>J
</kbd>{" "}
to open the command menu
</p>
Expand Down
17 changes: 0 additions & 17 deletions src/hooks/useOS.ts

This file was deleted.

0 comments on commit 787afb5

Please sign in to comment.