Skip to content

Commit

Permalink
fix(wallet-mobile): remove settings icon from staking header (#3600)
Browse files Browse the repository at this point in the history
  • Loading branch information
stackchain authored Sep 6, 2024
2 parents 02bc0e3 + abae06e commit c891851
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 17 deletions.
10 changes: 1 addition & 9 deletions apps/wallet-mobile/src/legacy/Dashboard/DashboardNavigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ import {useTheme} from '@yoroi/theme'
import React from 'react'
import {defineMessages, useIntl} from 'react-intl'

import {SettingsButton} from '../../components/Button'
import {NetworkTag} from '../../features/Settings/ChangeNetwork/NetworkTag'
import {useGovernanceManagerMaker} from '../../features/Staking/Governance'
import {useSelectedWallet} from '../../features/WalletManager/common/hooks/useSelectedWallet'
import {DashboardRoutes, defaultStackNavigationOptions, useWalletNavigation} from '../../kernel/navigation'
import {DashboardRoutes, defaultStackNavigationOptions} from '../../kernel/navigation'
import {DelegationConfirmation, FailedTxScreen} from '../Staking'
import {StakingCenter} from '../Staking/StakingCenter'
import {Dashboard} from './Dashboard'
Expand All @@ -36,7 +35,6 @@ export const DashboardNavigator = () => {
options={{
title: meta.name,
headerTitle: ({children}) => <NetworkTag>{children}</NetworkTag>,
headerRight: () => <HeaderRight />,
}}
/>

Expand Down Expand Up @@ -76,9 +74,3 @@ const messages = defineMessages({
defaultMessage: '!!!Staking Center',
},
})

const HeaderRight = () => {
const {navigateToSettings} = useWalletNavigation()

return <SettingsButton style={{paddingRight: 16}} onPress={() => navigateToSettings()} />
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
"defaultMessage": "!!!Staking Center",
"file": "src/legacy/Dashboard/DashboardNavigator.tsx",
"start": {
"line": 74,
"line": 72,
"column": 9,
"index": 2530
"index": 2406
},
"end": {
"line": 77,
"line": 75,
"column": 3,
"index": 2618
"index": 2494
}
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
"start": {
"line": 127,
"column": 9,
"index": 4454
"index": 4466
},
"end": {
"line": 130,
"column": 3,
"index": 4562
"index": 4574
}
},
{
Expand All @@ -21,12 +21,12 @@
"start": {
"line": 131,
"column": 11,
"index": 4575
"index": 4587
},
"end": {
"line": 134,
"column": 3,
"index": 4741
"index": 4753
}
}
]

0 comments on commit c891851

Please sign in to comment.