Skip to content

Commit 3282ff1

Browse files
committed
chore: remove unused prop
1 parent f46ef4e commit 3282ff1

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

  • packages/pluggableWidgets/popup-menu-web/src/components

packages/pluggableWidgets/popup-menu-web/src/components/PopupMenu.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,8 @@ import { Menu } from "./Menu";
88
import { PopupContext } from "./PopupContext";
99
import { PopupTrigger } from "./PopupTrigger";
1010

11-
export interface PopupMenuProps extends PopupMenuContainerProps {
12-
preview?: boolean;
13-
}
14-
15-
export function PopupMenu(props: PopupMenuProps): ReactElement {
16-
const preview = !!props.preview;
17-
const [visibility, setVisibility] = useState(preview && props.menuToggle);
11+
export function PopupMenu(props: PopupMenuContainerProps): ReactElement {
12+
const [visibility, setVisibility] = useState(props.menuToggle);
1813
const open = visibility;
1914
const popup = usePopup({
2015
open,

0 commit comments

Comments
 (0)