From 4b9b0676e651f4fa457554a745631011d3701057 Mon Sep 17 00:00:00 2001 From: bluecco Date: Fri, 18 Oct 2024 10:24:58 +0200 Subject: [PATCH] fix: update ui for sign message --- src/components/Actions/SignMessage.tsx | 146 +++++++++++++++++++------ 1 file changed, 112 insertions(+), 34 deletions(-) diff --git a/src/components/Actions/SignMessage.tsx b/src/components/Actions/SignMessage.tsx index 7a8dcba..802e840 100644 --- a/src/components/Actions/SignMessage.tsx +++ b/src/components/Actions/SignMessage.tsx @@ -5,7 +5,7 @@ import { walletStarknetkitNextAtom, } from "@/state/connectedWalletStarknetkitNext" import { lastTxStatusAtom } from "@/state/transactionState" -import { Button, Flex, Heading, Input, Textarea } from "@chakra-ui/react" +import { Button, Flex, Heading, Input, Text, Textarea } from "@chakra-ui/react" import { useAtomValue, useSetAtom } from "jotai" import { FC, useState } from "react" import { Account, AccountInterface, stark } from "starknet" @@ -60,36 +60,38 @@ const SignMessage: FC = ({ account, wallet }) => { } return ( - - { - e.preventDefault() - handleSignSubmit() - }} - direction="column" - flex={1} - p="4" - gap="3" - borderTopLeftRadius="lg" - borderBottomLeftRadius="lg" - > - Sign Message + <> + + { + e.preventDefault() + handleSignSubmit() + }} + direction="column" + flex={1} + p="4" + gap="3" + borderTopLeftRadius="lg" + borderBottomLeftRadius="lg" + > + Sign Message - setShortText(e.target.value)} - /> + setShortText(e.target.value)} + /> -
- -
+
+ +
+
= ({ account, wallet }) => { > Sign results - {/* Label and textarea for value r */} -