Skip to content

Commit

Permalink
Improved the manual search releases dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheus65535 committed Mar 28, 2021
1 parent 25894c4 commit b50e7f4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions frontend/src/components/modals/ManualSearchModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export const ManualSearchModal: FunctionComponent<Props & BaseModalProps> = (

const items = useMemo(
() =>
value.slice(1).map((v, idx) => (
value.map((v, idx) => (
<Dropdown.Item key={idx} disabled className="text-dark">
{v}
</Dropdown.Item>
Expand All @@ -139,9 +139,10 @@ export const ManualSearchModal: FunctionComponent<Props & BaseModalProps> = (
return (
<Dropdown>
<Dropdown.Toggle
disabled={value.length === 1}
className="dropdown-hidden text-dark dropdown-toggle-wrap"
variant={value.length === 1 ? "link" : "light"}
title={display}
variant={"light"}
size={"sm"}
>
<span>{display}</span>
</Dropdown.Toggle>
Expand Down

0 comments on commit b50e7f4

Please sign in to comment.