@@ -116,12 +116,19 @@ export function TopNav({
116
116
// else, go to home page
117
117
if ( hasSelectedCoin ) {
118
118
setRootParams ( { ...queryParams , token : undefined } )
119
+ return
119
120
}
120
121
const newPath = parts . length > 1 ? parts . slice ( 0 , 1 ) . join ( '/' ) : '/'
122
+ if ( path . includes ( '/settings' ) ) {
123
+ push ( `/${ newPath } ?nav=settings` )
124
+ return
125
+ }
126
+
121
127
push ( `/${ newPath } ` )
122
128
}
123
-
124
- const isSubRoute = ( ! noSubroute && parts . length > 1 ) || path . includes ( '/secret-shop' )
129
+ //@todo Refactor this so we can put back arrows on screens that need it
130
+ const isSubRoute =
131
+ ( ! noSubroute && parts . length > 1 ) || path . includes ( '/secret-shop' ) || path . includes ( '/deposit' )
125
132
126
133
const renderButton = ( ) => {
127
134
switch ( true ) {
@@ -218,7 +225,7 @@ export function TopNav({
218
225
col = "$color10"
219
226
lineHeight = { 32 }
220
227
$gtLg = { { ml : isSubRoute ? '$4' : '$0' } }
221
- display = { selectedCoin && ! media . gtLg ? 'none' : 'flex' }
228
+ display = { selectedCoin ? 'none' : 'flex' }
222
229
als = { 'center' }
223
230
>
224
231
{ header }
@@ -233,7 +240,7 @@ export function TopNav({
233
240
col = "$color10"
234
241
lineHeight = { 32 }
235
242
$gtLg = { { ml : isSubRoute ? '$4' : '$0' } }
236
- display = { selectedCoin && ! media . gtLg ? 'none ' : 'flex ' }
243
+ display = { isSubRoute ? 'flex ' : 'none ' }
237
244
als = { 'center' }
238
245
>
239
246
{ header }
@@ -269,7 +276,7 @@ export function TopNav({
269
276
< Separator w = { '100%' } borderColor = "$jet" $lg = { { display : 'none' } } />
270
277
</ Container >
271
278
) }
272
- < Separator w = { '100%' } borderColor = "$decay" $gtLg = { { display : 'none' } } />
279
+ < Separator w = { '100%' } borderColor = "$decay" $gtLg = { { display : 'none' } } mt = "$2" />
273
280
{ ! media . gtLg && selectedCoin && selectedCoin . label !== 'USDC' && (
274
281
< Container pos = "relative" >
275
282
< View
0 commit comments