added cn to join classNames in kbd component
This commit is contained in:
parent
9c84e55e01
commit
30ae63bdf0
|
|
@ -99,9 +99,7 @@ function ToolbarLeftSection() {
|
|||
const { shortcuts } = useKeyboardShortcutsHelp();
|
||||
const shortcutMap = Object.fromEntries(
|
||||
shortcuts.map(s => [s.action, s])
|
||||
);
|
||||
console.log(shortcutMap);
|
||||
|
||||
);
|
||||
|
||||
|
||||
const selectedElement =
|
||||
|
|
|
|||
|
|
@ -1,9 +1,18 @@
|
|||
"use client"
|
||||
import * as React from "react";
|
||||
import { cn } from "@/utils/ui";
|
||||
type KbdProps = {
|
||||
children: React.ReactNode;
|
||||
className?: string;
|
||||
}
|
||||
export const Kbd = (
|
||||
{
|
||||
children,
|
||||
className
|
||||
|
||||
export const Kbd = ({ children }: { children: React.ReactNode }) => {
|
||||
}: KbdProps) => {
|
||||
return (
|
||||
<kbd className="rounded bg-muted px-1.5 py-0.5 text-xs font-mono border">
|
||||
<kbd className={cn("rounded bg-muted px-1.5 py-0.5 text-xs font-mono border", className)}>
|
||||
{children}
|
||||
</kbd>
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue