Skip to content

Commit 68fedab

Browse files
Import changes for dropdown
1 parent 3f8be0e commit 68fedab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/Dropdown.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { Fragment } from 'react'
22
import { Menu, Transition } from '@headlessui/react'
33
import { ChevronDownIcon } from '@heroicons/react/20/solid'
4-
import { combineClassNames } from '@/submodules/javascript-functions/general';
54
import { DropdownProps, OptionProps } from '../types/dropdown';
5+
import { combineClassNames } from '../../javascript-functions/general';
66

77

88
export default function Dropdown(props: DropdownProps) {
@@ -35,7 +35,7 @@ export default function Dropdown(props: DropdownProps) {
3535
<Menu.Items className="absolute z-10 mt-2 w-40 origin-top-right rounded-md bg-white shadow-sm ring-1 ring-black ring-opacity-5 focus:outline-none">
3636
<div className="py-1">
3737
{props.options.map((option: OptionProps) => (
38-
<div key={option.name}>
38+
<div key={option.id}>
3939
<Menu.Item >
4040
{({ active }) => (
4141
<a key={option.id}

0 commit comments

Comments
 (0)