Skip to content

Commit

Permalink
Use constant for menuItem reference
Browse files Browse the repository at this point in the history
  • Loading branch information
twschiller committed Jun 30, 2024
1 parent cdc0ac3 commit d74c3ad
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/pageEditor/starterBricks/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ import {
type StarterBrickDefinitionLike,
type StarterBrickDefinitionProp,
} from "@/starterBricks/types";
import { type StarterBrickType } from "@/types/starterBrickTypes";
import {
type StarterBrickType,
StarterBrickTypes,
} from "@/types/starterBrickTypes";
import type React from "react";
import { createSitePattern, SITES_PATTERN } from "@/permissions/patterns";
import { type Except } from "type-fest";
Expand Down Expand Up @@ -419,7 +422,7 @@ export function getImplicitReader(
return readerTypeHack([...base, ...elementAddons]);
}

if (type === "menuItem") {
if (type === StarterBrickTypes.BUTTON) {
return readerTypeHack([...base, ...elementAddons]);
}

Expand Down

0 comments on commit d74c3ad

Please sign in to comment.