From bb215210ae3f065fea64719e2eb2ec45240c9662 Mon Sep 17 00:00:00 2001 From: "ildar.timerbaev" Date: Thu, 9 Jan 2025 10:28:37 +0300 Subject: [PATCH 1/2] Changed behavior of proposals vote button --- .../_components/proposal-vote-btn/index.tsx | 25 ++++++++----------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/src/app/proposals/_components/proposal-vote-btn/index.tsx b/src/app/proposals/_components/proposal-vote-btn/index.tsx index 531ed9444..4d98c3812 100644 --- a/src/app/proposals/_components/proposal-vote-btn/index.tsx +++ b/src/app/proposals/_components/proposal-vote-btn/index.tsx @@ -1,12 +1,12 @@ import React, { useMemo } from "react"; import "./_index.scss"; import { useGlobalStore } from "@/core/global-store"; -import { chevronUpSvg } from "@ui/svg"; import { KeyOrHotDialog, LoginRequired } from "@/features/shared"; import { useProposalVoteByKey, useProposalVoteByKeychain } from "@/api/mutations/proposal-vote"; import { proposalVoteHot } from "@/api/operations"; import { getProposalVotesQuery } from "@/api/queries"; -import { UilSpinner } from "@tooni/iconscout-unicons-react"; +import { UilArrowUp } from "@tooni/iconscout-unicons-react"; +import { Button } from "@ui/button"; interface Props { proposal: number; @@ -40,11 +40,7 @@ export function ProposalVoteBtn({ proposal }: Props) { if (!activeUser) { return ( -
-
- {chevronUpSvg} -
-
+