From 4cafc05a85f2f659358865b60207ae74cbc30754 Mon Sep 17 00:00:00 2001 From: Agusx1211 Date: Wed, 29 Nov 2023 20:35:08 +0000 Subject: [PATCH] Add collapsible sections for different views --- src/App.tsx | 32 ++++++++++++------- src/components/views/CallContractsView.tsx | 5 --- src/components/views/SendERC1155View.tsx | 5 --- src/components/views/SendERC20View.tsx | 6 ---- src/components/views/SendTransactionsView.tsx | 5 --- src/components/views/SignMessageView.tsx | 5 --- 6 files changed, 21 insertions(+), 37 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index c965436..c0c743d 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,5 +1,5 @@ import { useEffect, useState } from 'react' -import { Box, Text, Divider, Button, Spinner, Modal } from '@0xsequence/design-system' +import { Box, Text, Divider, Button, Spinner, Modal, Collapsible } from '@0xsequence/design-system' import { router, sequence } from './main' @@ -146,16 +146,26 @@ function App() { {fetchWalletAddressError && Error fetching wallet address: {fetchWalletAddressError}} - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + ) diff --git a/src/components/views/CallContractsView.tsx b/src/components/views/CallContractsView.tsx index abfa620..1d96c3e 100644 --- a/src/components/views/CallContractsView.tsx +++ b/src/components/views/CallContractsView.tsx @@ -41,11 +41,6 @@ export function CallContractsView() { return ( - - - Call any contract - - - - - Send ERC1155 Tokens - - - - - Send ERC20 Token - - -