@@ -16,10 +16,6 @@ import { safeGetAddress } from 'utils'
16
16
import { Hex , hexToBigInt } from 'viem'
17
17
import { useWalletClient } from 'wagmi'
18
18
import { initialState } from 'state/user/reducer'
19
- import { useUserShowTestnet } from 'state/user/hooks/useUserShowTestnet'
20
- import { useUserTokenRisk } from 'state/user/hooks/useUserTokenRisk'
21
- import { useWebNotifications } from 'hooks/useWebNotifications'
22
- import { useAllowNotifications } from 'state/notifications/hooks'
23
19
import { useUserChart } from './useUserChart'
24
20
import {
25
21
FarmStakedOnly ,
@@ -477,51 +473,6 @@ export function useTrackedTokenPairs(): [ERC20Token, ERC20Token][] {
477
473
} , [ combinedList ] )
478
474
}
479
475
480
- export function useGlobalSettingsChanged ( ) {
481
- const [ subgraphHealth , setSubgraphHealth , defaultSubgraphHealthValue ] = useSubgraphHealthIndicatorManager ( )
482
- const [ userUsernameVisibility , setUsernameVisibility , defaultUserUsernameVisibilityValue ] =
483
- useUserUsernameVisibility ( )
484
- const [ showTestnet , setShowTestnet , defaultShowTestnetValue ] = useUserShowTestnet ( )
485
- const [ tokenRisk , setTokenRisk , defaultTokenRiskValue ] = useUserTokenRisk ( )
486
- const { enabled : notificationsEnabled , defaultValue : defaultNotificationsValue } = useWebNotifications ( )
487
- const [ , setAllowNotifications ] = useAllowNotifications ( )
488
- const [ gasPrice , setGasPrice , defaultGasPrice ] = useGasPriceManager ( )
489
-
490
- const resetSettings = useCallback ( ( ) => {
491
- setSubgraphHealth ( defaultSubgraphHealthValue )
492
- setUsernameVisibility ( defaultUserUsernameVisibilityValue )
493
- setShowTestnet ( defaultShowTestnetValue )
494
- setTokenRisk ( defaultTokenRiskValue )
495
- setAllowNotifications ( defaultNotificationsValue ?? true )
496
- setGasPrice ( defaultGasPrice )
497
- } , [
498
- setShowTestnet ,
499
- setTokenRisk ,
500
- setAllowNotifications ,
501
- setGasPrice ,
502
- defaultGasPrice ,
503
- defaultNotificationsValue ,
504
- defaultShowTestnetValue ,
505
- defaultSubgraphHealthValue ,
506
- defaultTokenRiskValue ,
507
- defaultUserUsernameVisibilityValue ,
508
- gasPrice ,
509
- setSubgraphHealth ,
510
- setUsernameVisibility ,
511
- ] )
512
-
513
- return {
514
- isGlobalSettingsChanged :
515
- subgraphHealth !== defaultSubgraphHealthValue ||
516
- userUsernameVisibility !== defaultUserUsernameVisibilityValue ||
517
- showTestnet !== defaultShowTestnetValue ||
518
- tokenRisk !== defaultTokenRiskValue ||
519
- notificationsEnabled !== defaultNotificationsValue ||
520
- gasPrice !== defaultGasPrice ,
521
- resetSettings,
522
- }
523
- }
524
-
525
476
/**
526
477
* @deprecated
527
478
*/
0 commit comments