Skip to content

Commit a093f6e

Browse files
committed
Removed unnecessary platform specification
1 parent 6ece9b9 commit a093f6e

File tree

2 files changed

+2
-17
lines changed

2 files changed

+2
-17
lines changed

apps/webapp/app/components/primitives/Dialog.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,7 @@ const DialogContent = React.forwardRef<
5353
<DialogPrimitive.Close className="data-[state=open]:bg-accent data-[state=open]:text-muted-foreground group absolute right-2 top-[0.5625rem] flex items-center gap-1 rounded-sm p-1 py-1 pl-0 pr-1 opacity-70 transition focus-custom hover:bg-charcoal-750 hover:opacity-100 focus-visible:focus-custom disabled:pointer-events-none">
5454
<ShortcutKey
5555
shortcut={{
56-
windows: {
57-
key: "esc",
58-
},
59-
mac: {
60-
key: "esc",
61-
},
56+
key: "esc",
6257
}}
6358
variant="medium"
6459
/>

apps/webapp/app/components/primitives/SheetV3.tsx

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -91,17 +91,7 @@ const SheetTitle = React.forwardRef<
9191
>
9292
{children}
9393
<SheetPrimitive.Close className="flex items-center gap-1 rounded-sm p-1 pl-0 transition hover:bg-charcoal-750 focus-visible:focus-custom disabled:pointer-events-none">
94-
<ShortcutKey
95-
shortcut={{
96-
windows: {
97-
key: "esc",
98-
},
99-
mac: {
100-
key: "esc",
101-
},
102-
}}
103-
variant="small"
104-
/>
94+
<ShortcutKey shortcut={{ key: "esc" }} variant="small" />
10595
<XMarkIcon className="size-4 text-text-dimmed" />
10696
<span className="sr-only">Close</span>
10797
</SheetPrimitive.Close>

0 commit comments

Comments
 (0)