mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
fix: use custom button in dropdown
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
||||
import { useRef, useState } from "react";
|
||||
import { Button, Text } from "rebass";
|
||||
import { Text } from "rebass";
|
||||
import { Icon } from "./icon";
|
||||
import { Icons } from "../icons";
|
||||
import { useIsMobile, useToolbarLocation } from "../stores/toolbar-store";
|
||||
import { MenuPresenter } from "../../components/menu";
|
||||
import { getToolbarElement } from "../utils/dom";
|
||||
import { Button } from "../../components/button";
|
||||
export function Dropdown(props) {
|
||||
const { items, selectedItem, buttonRef, menuWidth } = props;
|
||||
const internalRef = useRef();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { useRef, useState } from "react";
|
||||
import { Button, Flex, Text } from "rebass";
|
||||
import { Flex, Text } from "rebass";
|
||||
import { Icon } from "./icon";
|
||||
import { Icons } from "../icons";
|
||||
// import { MenuPresenter, MenuPresenterProps } from "../../components/menu/menu";
|
||||
@@ -7,6 +7,7 @@ import { MenuItem } from "../../components/menu/types";
|
||||
import { useIsMobile, useToolbarLocation } from "../stores/toolbar-store";
|
||||
import { MenuPresenter } from "../../components/menu";
|
||||
import { getToolbarElement } from "../utils/dom";
|
||||
import { Button } from "../../components/button";
|
||||
|
||||
type DropdownProps = {
|
||||
selectedItem: string | JSX.Element;
|
||||
|
||||
Reference in New Issue
Block a user