From 3aa6abc6e5346eb54cc62d2d299b9f27d2ed4d0a Mon Sep 17 00:00:00 2001 From: Carlo Sala Date: Wed, 21 Aug 2024 11:57:10 +0200 Subject: [PATCH] fixes --- src/App.tsx | 2 +- src/api/delegation.ts | 2 +- src/components/multi-select.tsx | 8 ++------ 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index a0ad394..22c14b4 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,6 +1,6 @@ import { Suspense } from "react" import { Link, Route, Routes } from "react-router-dom" -import { Delegate, Send, Void } from "./actions" +import { CreateSend, Delegate, Send } from "./actions" import { Header } from "./Header" function App() { diff --git a/src/api/delegation.ts b/src/api/delegation.ts index 9d5f2b8..99ccf44 100644 --- a/src/api/delegation.ts +++ b/src/api/delegation.ts @@ -1,4 +1,4 @@ -import { Binary, Enum, SS58String } from "polkadot-api" +import { Enum, SS58String } from "polkadot-api" import { polkadotApi as api, polkadotPeopleApi } from "./" import { MultiAddress, VotingConviction } from "@polkadot-api/descriptors" diff --git a/src/components/multi-select.tsx b/src/components/multi-select.tsx index 4a73deb..fe7c89a 100644 --- a/src/components/multi-select.tsx +++ b/src/components/multi-select.tsx @@ -134,7 +134,6 @@ export const MultiSelect = React.forwardRef< const [selectedValues, setSelectedValues] = React.useState(defaultValue) const [isPopoverOpen, setIsPopoverOpen] = React.useState(false) - const [isAnimating, setIsAnimating] = React.useState(false) React.useEffect(() => { setSelectedValues(defaultValue) @@ -211,10 +210,7 @@ export const MultiSelect = React.forwardRef< return ( {IconComponent && ( @@ -235,7 +231,7 @@ export const MultiSelect = React.forwardRef<