Skip to content

Commit a9fdb7f

Browse files
committed
Swap variables for more intuitive order
1 parent dd32051 commit a9fdb7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/use-dropdown-menu.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ interface Props {
1111

1212
const TestComponent: React.FC<Props> = ({ options }) => {
1313
const [itemCount, setItemCount] = useState(4);
14-
const { buttonProps, itemProps, isOpen, moveFocus, setIsOpen } = useDropdownMenu(itemCount, options);
14+
const { buttonProps, itemProps, isOpen, setIsOpen, moveFocus } = useDropdownMenu(itemCount, options);
1515

1616
const clickHandlers: (() => void)[] = [(): void => console.log('Item one clicked'), (): void => setIsOpen(false)];
1717

0 commit comments

Comments
 (0)