Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosala committed Aug 21, 2024
1 parent 959d83c commit 3aa6abc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion src/api/delegation.ts
Original file line number Diff line number Diff line change
@@ -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"

Expand Down
8 changes: 2 additions & 6 deletions src/components/multi-select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ export const MultiSelect = React.forwardRef<
const [selectedValues, setSelectedValues] =
React.useState<string[]>(defaultValue)
const [isPopoverOpen, setIsPopoverOpen] = React.useState(false)
const [isAnimating, setIsAnimating] = React.useState(false)

React.useEffect(() => {
setSelectedValues(defaultValue)
Expand Down Expand Up @@ -211,10 +210,7 @@ export const MultiSelect = React.forwardRef<
return (
<Badge
key={value}
className={cn(
isAnimating ? "animate-bounce" : "",
multiSelectVariants({ variant }),
)}
className={cn("", multiSelectVariants({ variant }))}
style={{ animationDuration: `${animation}s` }}
>
{IconComponent && (
Expand All @@ -235,7 +231,7 @@ export const MultiSelect = React.forwardRef<
<Badge
className={cn(
"bg-transparent text-foreground border-foreground/1 hover:bg-transparent",
isAnimating ? "animate-bounce" : "",
"",
multiSelectVariants({ variant }),
)}
style={{ animationDuration: `${animation}s` }}
Expand Down

0 comments on commit 3aa6abc

Please sign in to comment.