From 9152ad7bb0a3ac80885b2a35f9c505b45b68c935 Mon Sep 17 00:00:00 2001 From: Jip Fr Date: Sat, 18 Nov 2023 21:03:02 +0100 Subject: [PATCH] Replace icon in dropdown --- src/components/Dropdown.tsx | 8 +++----- src/components/Icon.tsx | 2 ++ themes/default.ts | 1 + 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/components/Dropdown.tsx b/src/components/Dropdown.tsx index 8745a459..122c3e5e 100644 --- a/src/components/Dropdown.tsx +++ b/src/components/Dropdown.tsx @@ -19,7 +19,7 @@ export function Dropdown(props: DropdownProps) { return (
- {({ open }) => ( + {() => ( <> @@ -30,10 +30,8 @@ export function Dropdown(props: DropdownProps) { diff --git a/src/components/Icon.tsx b/src/components/Icon.tsx index 227a31c7..4f81ad41 100644 --- a/src/components/Icon.tsx +++ b/src/components/Icon.tsx @@ -51,6 +51,7 @@ export enum Icons { WAND = "wand", COPY = "copy", USER = "user", + UP_DOWN_ARROW = "up_down_arrow", } export interface IconProps { @@ -109,6 +110,7 @@ const iconList: Record = { wand: ``, copy: ``, user: ``, + up_down_arrow: ``, }; function ChromeCastButton() { diff --git a/themes/default.ts b/themes/default.ts index 90b1f98d..f2ebd65c 100644 --- a/themes/default.ts +++ b/themes/default.ts @@ -88,6 +88,7 @@ export const defaultTheme = { // Dropdown dropdown: { background: "#171728", + secondary: "#73739D", }, // Passphrase