From f3500b8d0a13e95f8af1933c0f9434d077f534cd Mon Sep 17 00:00:00 2001 From: Gabe Rodriguez Date: Fri, 20 Sep 2024 13:54:11 +0200 Subject: [PATCH] Update Select component (#1799) --- .../components/ibc/ibc-in/ibc-in-request.tsx | 26 ++++---- .../components/ibc/ibc-out/chain-selector.tsx | 8 +-- packages/ui/components/ui/select/index.tsx | 1 - packages/ui/components/ui/select/select.tsx | 61 +++++++++++++------ packages/ui/package.json | 2 +- pnpm-lock.yaml | 16 ++--- 6 files changed, 66 insertions(+), 48 deletions(-) diff --git a/apps/minifront/src/components/ibc/ibc-in/ibc-in-request.tsx b/apps/minifront/src/components/ibc/ibc-in/ibc-in-request.tsx index c81829770b..aef1ba0d0b 100644 --- a/apps/minifront/src/components/ibc/ibc-in/ibc-in-request.tsx +++ b/apps/minifront/src/components/ibc/ibc-in/ibc-in-request.tsx @@ -47,23 +47,21 @@ export const IbcInRequest = () => { )}
diff --git a/apps/minifront/src/components/ibc/ibc-out/chain-selector.tsx b/apps/minifront/src/components/ibc/ibc-out/chain-selector.tsx index 34fd2463fc..5b75ff3937 100644 --- a/apps/minifront/src/components/ibc/ibc-out/chain-selector.tsx +++ b/apps/minifront/src/components/ibc/ibc-out/chain-selector.tsx @@ -6,7 +6,6 @@ import { SelectValue, } from '@penumbra-zone/ui/components/ui/select'; import { cn } from '@penumbra-zone/ui/lib/utils'; -import { useState } from 'react'; import { AllSlices } from '../../../state'; import { Chain } from '@penumbra-labs/registry'; import { useStoreShallow } from '../../../utils/use-store-shallow'; @@ -20,7 +19,6 @@ const chainSelectorSelector = (state: AllSlices) => ({ export const ChainSelector = () => { const { chain, setChain } = useStoreShallow(chainSelectorSelector); const chains = useChains(); - const [openSelect, setOpenSelect] = useState(false); return (
@@ -28,10 +26,8 @@ export const ChainSelector = () => {