1
1
import { AppShell , Box , Burger , Divider , Grid , Group , NativeSelect , NavLink , Title , Text } from '@mantine/core' ;
2
2
import { useDisclosure } from '@mantine/hooks' ;
3
- import { IconCirclePlus , IconEdit , IconFileImport , IconFileUpload , IconHome , IconList , IconListDetails , IconSend2 , IconWallet } from '@tabler/icons-react' ;
3
+ import { IconCirclePlus , IconEdit , IconFileImport , IconFileUpload , IconHome , IconList , IconListDetails , IconMessage , IconSend2 , IconWallet , IconWritingSign } from '@tabler/icons-react' ;
4
4
import { Route , Routes , useLocation , useNavigate } from "react-router-dom"
5
5
import { Create } from './sections/Create' ;
6
6
import { Notifications } from '@mantine/notifications' ;
7
7
import { Home } from './sections/Home' ;
8
8
import { Wallet } from './sections/Wallet' ;
9
9
import { useSelectedWallet } from './stores/Storage' ;
10
10
import { Send } from './sections/Send' ;
11
+ import { Sign } from './sections/Sign' ;
11
12
import { ConnectKitButton } from 'connectkit' ;
12
13
import { Transaction } from './sections/Transaction' ;
14
+ import { Message } from './sections/Message' ;
13
15
import { Transactions } from './sections/Transactions' ;
14
16
import { useImport } from './sections/Import' ;
15
17
import { ImportWallet } from './sections/ImportWallet' ;
16
18
import { useWallets } from './stores/db/Wallets' ;
17
19
import { Update } from './sections/Update' ;
18
20
import { Updates } from './sections/Updates' ;
19
21
import { UpdateDetail } from './sections/UpdateDetail' ;
22
+ import { Messages } from './sections/Messages' ;
20
23
21
24
declare var __COMMIT_HASH__ : string
22
25
@@ -128,6 +131,20 @@ export function App() {
128
131
active = { pathname === '/updates/' + selectedWalletAddress }
129
132
disabled = { ! selectedWalletAddress }
130
133
/>
134
+ < NavLink
135
+ href = { "#sign-message/" + selectedWalletAddress }
136
+ label = "Sign Message"
137
+ leftSection = { < IconWritingSign size = "1rem" stroke = { 1.5 } /> }
138
+ active = { pathname === '/sign-message/' + selectedWalletAddress }
139
+ disabled = { ! selectedWalletAddress }
140
+ />
141
+ < NavLink
142
+ href = { "#messages/" + selectedWalletAddress }
143
+ label = "Messages"
144
+ leftSection = { < IconMessage size = "1rem" stroke = { 1.5 } /> }
145
+ active = { pathname === '/messages/' + selectedWalletAddress }
146
+ disabled = { ! selectedWalletAddress }
147
+ />
131
148
< Box mt = "auto" />
132
149
< Box >
133
150
< Text size = "sm" c = "dimmed" >
@@ -153,9 +170,12 @@ export function App() {
153
170
< Route path = "/new-transaction/:address" element = { < Send /> } />
154
171
< Route path = "/transactions/:address" element = { < Transactions /> } />
155
172
< Route path = "/transaction/:subdigest" element = { < Transaction /> } />
173
+ < Route path = "/message/:subdigest" element = { < Message /> } />
156
174
< Route path = "/update/:address" element = { < Update /> } />
157
175
< Route path = "/updates/:address" element = { < Updates /> } />
158
176
< Route path = "/do-update/:subdigest" element = { < UpdateDetail /> } />
177
+ < Route path = "/sign-message/:address" element = { < Sign /> } />
178
+ < Route path = "/messages/:address" element = { < Messages /> } />
159
179
</ Routes >
160
180
</ AppShell . Main >
161
181
</ AppShell >
0 commit comments