diff --git a/desktop-app/src/renderer/components/DropDown/index.tsx b/desktop-app/src/renderer/components/DropDown/index.tsx index acfca8de1..3747d8729 100644 --- a/desktop-app/src/renderer/components/DropDown/index.tsx +++ b/desktop-app/src/renderer/components/DropDown/index.tsx @@ -1,15 +1,16 @@ import { Menu, Transition } from '@headlessui/react'; import { Icon } from '@iconify/react'; import cx from 'classnames'; -import { Fragment, useEffect, useRef, useState } from 'react'; +import { Fragment } from 'react'; interface Separator { type: 'separator'; } + interface Option { type?: 'option'; label: JSX.Element | string; - onClick: () => void; + onClick: (() => void) | null; } type OptionOrSeparator = Option | Separator; @@ -17,14 +18,15 @@ type OptionOrSeparator = Option | Separator; interface Props { label: JSX.Element | string; options: OptionOrSeparator[]; + className?: string | null; } -export function DropDown({ label, options }: Props) { +export function DropDown({ label, options, className }: Props) { return (