1
- import { type ReactNode , useCallback , useMemo } from 'react'
1
+ import { type ReactNode , useMemo } from 'react'
2
2
import { Link } from 'react-router-dom'
3
3
import { type Hex , formatGwei } from 'viem'
4
4
@@ -24,15 +24,12 @@ import { useHost } from '~/hooks/useHost'
24
24
import { useMine } from '~/hooks/useMine'
25
25
import { useNetworkStatus } from '~/hooks/useNetworkStatus'
26
26
import { usePendingBlock } from '~/hooks/usePendingBlock'
27
- import { getMessenger } from '~/messengers'
28
27
import { useAccountStore , useNetworkStore , useSessionsStore } from '~/zustand'
29
28
30
29
import { useRevert } from '../hooks/useRevert'
31
30
import { useSnapshot } from '../hooks/useSnapshot'
32
31
import * as styles from './Header.css'
33
32
34
- const contentMessenger = getMessenger ( 'wallet:contentScript' )
35
-
36
33
export function Header ( { isNetworkOffline } : { isNetworkOffline ?: boolean } ) {
37
34
const { type } = useAppMeta ( )
38
35
return (
@@ -62,12 +59,6 @@ export function Header({ isNetworkOffline }: { isNetworkOffline?: boolean }) {
62
59
< Column width = "content" >
63
60
< SettingsButton />
64
61
</ Column >
65
- < Column width = "content" >
66
- < Separator orientation = "vertical" />
67
- </ Column >
68
- < Column width = "content" >
69
- < CollapseButton />
70
- </ Column >
71
62
</ >
72
63
) }
73
64
</ Columns >
@@ -194,31 +185,6 @@ function DappConnection() {
194
185
)
195
186
}
196
187
197
- function CollapseButton ( ) {
198
- const handleClose = useCallback ( ( ) => {
199
- contentMessenger . send ( 'toggleWallet' , undefined )
200
- } , [ ] )
201
-
202
- return (
203
- < Tooltip label = "Hide Wallet" height = "full" >
204
- < Box
205
- alignItems = "center"
206
- as = "button"
207
- backgroundColor = { {
208
- hover : 'surface/fill/quarternary' ,
209
- } }
210
- display = "flex"
211
- justifyContent = "center"
212
- height = "full"
213
- onClick = { handleClose }
214
- style = { { width : '28px' } }
215
- >
216
- < SFSymbol size = "12px" symbol = "chevron.right.2" weight = "medium" />
217
- </ Box >
218
- </ Tooltip >
219
- )
220
- }
221
-
222
188
function SettingsButton ( ) {
223
189
return (
224
190
< Tooltip label = "Settings" height = "full" >
@@ -232,7 +198,7 @@ function SettingsButton() {
232
198
display = "flex"
233
199
justifyContent = "center"
234
200
height = "full"
235
- style = { { width : '28px ' } }
201
+ style = { { width : '32px ' } }
236
202
>
237
203
< SFSymbol size = "14px" symbol = "gear" weight = "medium" />
238
204
</ Box >
0 commit comments