Skip to content

Commit 747f7f1

Browse files
committed
Naming consistency
1 parent d1181e0 commit 747f7f1

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

renderer/ui/InfoDrawer/InfoDrawer.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,19 @@ const InfoButton: React.FC<InfoButtonProps> = ({ children }) => {
2929
const { formatMessage } = useIntl();
3030
const { isOpen, onOpen, onClose } = useDisclosure();
3131
const displayMode = useBreakpointValue({
32-
base: "mobile",
33-
md: "tablet",
34-
lg: "desktop",
32+
base: "sm",
33+
md: "md",
34+
lg: "lg",
3535
});
3636

37-
if (displayMode === "desktop") {
37+
// Large display mode shows no drawer
38+
if (displayMode === "lg") {
3839
return <Box>{children}</Box>;
3940
}
4041

4142
return (
4243
<>
43-
{displayMode === "mobile" ? (
44+
{displayMode === "sm" ? (
4445
<IconButton
4546
icon={<MdInfo />}
4647
aria-label={formatMessage(messages.details)}

0 commit comments

Comments
 (0)