Skip to content

Commit

Permalink
Fix typechecks
Browse files Browse the repository at this point in the history
  • Loading branch information
shilman committed Dec 13, 2024
1 parent 46bf7b6 commit f2a8af8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/core/src/manager/components/preview/Toolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export const createTabsTool = (tabs: Addon_BaseType[]): Addon_BaseType => ({
const isActive = rp.path.includes(`tab=${tab.id}`);
return (
<TabButton
disabled={tab.disabled}
disabled={!!tab.disabled}
active={isActive}
onClick={() => {
rp.applyQueryParams({ tab: tabIdToApply });
Expand Down Expand Up @@ -146,7 +146,7 @@ export const ToolbarComp = React.memo<ToolData>(function ToolbarComp({
{tabs.map((tab, index) => {
return (
<TabButton
disabled={tab.disabled}
disabled={!!tab.disabled}
active={tab.id === tabId || (tab.id === 'canvas' && !tabId)}
onClick={() => {
api.applyQueryParams({ tab: tab.id === 'canvas' ? undefined : tab.id });
Expand Down

0 comments on commit f2a8af8

Please sign in to comment.