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:
Filipe Freire 2023-01-26 09:16:21 +00:00 committed by GitHub
parent bfb2821993
commit e4e092e3e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 3 deletions

View File

@ -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}>

View File

@ -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 })}

View File

@ -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'}