+
{GRID_HOMEPAGE_ENABLED ? renderItemGrid : renderItemFeed}
{GRID_HOMEPAGE_ENABLED ? renderItemFeed : renderItemGrid}
@@ -73,9 +85,7 @@ export default function AppViewSwitcher({
icon={}
isInteractive={false}
noPadding
- tooltip={!isAdminMenuOpen
- ? { content: 'Admin Menu' }
- : undefined}
+ tooltip={{ content: 'Admin Menu' }}
/>}
{isUserSignedIn &&
}
- tooltip={!isAdminMenuOpen
- ? { content: 'Admin Menu' }
- : undefined}
+ tooltip={{ content: !isAdminMenuOpen ? 'Admin Menu' : undefined }}
noPadding
/>}
@@ -93,13 +101,11 @@ export default function AppViewSwitcher({
}
onClick={() => setIsCommandKOpen?.(true)}
- tooltip={!isAdminMenuOpen
- ? {
- content: 'Search',
- keyCommand: 'K',
- keyCommandModifier: '⌘',
- }
- : undefined}
+ tooltip={{
+ content: 'Search',
+ keyCommand: 'K',
+ keyCommandModifier: '⌘',
+ }}
/>
diff --git a/src/components/SwitcherItem.tsx b/src/components/SwitcherItem.tsx
index a678eefa..9178cb4f 100644
--- a/src/components/SwitcherItem.tsx
+++ b/src/components/SwitcherItem.tsx
@@ -72,7 +72,7 @@ export default function SwitcherItem({
?
{content}
diff --git a/src/components/primitives/KeyCommand.tsx b/src/components/primitives/KeyCommand.tsx
index 290563f0..3630d963 100644
--- a/src/components/primitives/KeyCommand.tsx
+++ b/src/components/primitives/KeyCommand.tsx
@@ -19,7 +19,11 @@ export default function KeyCommand({
{keys.map((key) => (
{key}
diff --git a/src/components/primitives/TooltipPrimitive.tsx b/src/components/primitives/TooltipPrimitive.tsx
index ddcd86d5..000cdd0f 100644
--- a/src/components/primitives/TooltipPrimitive.tsx
+++ b/src/components/primitives/TooltipPrimitive.tsx
@@ -49,7 +49,7 @@ export default function TooltipPrimitive({
});
const classNameTrigger = clsx(
- 'cursor-default inline-block',
+ 'cursor-default inline-flex',
classNameTriggerProp,
);