mirror of
https://github.com/Kong/insomnia
synced 2024-11-07 22:30:15 +00:00
Fix INS-2291 weird ui for some dropdown options (#5720)
* Fix INS-2291 weird ui for some dropdown options * Fix issue with sync-dropdown Co-authored-by: Pavlos Koutoglou <pkoutoglou@gmail.com>
This commit is contained in:
parent
bfb2821993
commit
e4e092e3e0
@ -54,7 +54,6 @@ export const Dropdown = forwardRef<DropdownHandle, DropdownProps>((props: Dropdo
|
||||
const triggerRef = useRef<HTMLButtonElement>(ref);
|
||||
|
||||
const { menuTriggerProps, menuProps } = useMenuTrigger({ isDisabled }, state, triggerRef);
|
||||
console.log(menuProps);
|
||||
return (
|
||||
<Container className={classnames('dropdown', className)} style={style} data-testid={dataTestId}>
|
||||
<PressResponder {...menuTriggerProps} isPressed={state.isOpen} ref={triggerRef}>
|
||||
|
@ -221,7 +221,6 @@ export const GitSyncDropdown: FC<Props> = ({ className, gitRepository }) => {
|
||||
return (
|
||||
<DropdownItem
|
||||
key={branch}
|
||||
title={isCurrentBranch ? '' : `Switch to "${branch}"`}
|
||||
>
|
||||
<ItemContent
|
||||
className={classnames({ bold: isCurrentBranch })}
|
||||
|
@ -506,7 +506,6 @@ export const SyncDropdown: FC<Props> = ({ vcs, workspace, project }) => {
|
||||
<DropdownItem
|
||||
key={branch}
|
||||
aria-label={branch}
|
||||
title={isCurrentBranch ? '' : `Switch to "${branch}"`}
|
||||
>
|
||||
<ItemContent
|
||||
icon={currentBranch ? 'tag' : 'empty'}
|
||||
|
Loading…
Reference in New Issue
Block a user