File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { FC , ReactNode } from 'react'
22import { Network } from '../../../types/network'
33import { ThemeProvider } from '@mui/material/styles'
4- import { getThemeForNetwork } from '../../../styles/theme'
4+ import { getThemeForScope } from '../../../styles/theme'
55import CssBaseline from '@mui/material/CssBaseline'
66import { fixedNetwork } from '../../utils/route-utils'
77
@@ -10,7 +10,7 @@ export const ThemeByScope: FC<{ network: Network; isRootTheme: boolean; children
1010 isRootTheme,
1111 children,
1212} ) => (
13- < ThemeProvider theme = { getThemeForNetwork ( network ) } >
13+ < ThemeProvider theme = { getThemeForScope ( network ) } >
1414 { isRootTheme && < CssBaseline /> }
1515 { children }
1616 </ ThemeProvider >
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import {
1515 Network ,
1616} from '../../../types/network'
1717import { HideMoreResults , ShowMoreResults } from './notifications'
18- import { getThemeForNetwork } from '../../../styles/theme'
18+ import { getThemeForScope } from '../../../styles/theme'
1919import { orderByLayer } from '../../../types/layers'
2020import { useRedirectIfSingleResult } from './useRedirectIfSingleResult'
2121import { SearchParams } from '../../components/Search/search-utils'
@@ -50,7 +50,7 @@ export const GlobalSearchResultsView: FC<{
5050 }
5151
5252 const otherNetworks = RouteUtils . getEnabledNetworks ( ) . filter ( isNotMainnet )
53- const notificationTheme = getThemeForNetwork ( Network . testnet )
53+ const notificationTheme = getThemeForScope ( Network . testnet )
5454 const mainnetResults = searchResults . filter ( isOnMainnet ) . sort ( orderByLayer )
5555 const otherResults = searchResults . filter ( isNotOnMainnet ) . sort ( orderByLayer )
5656
Original file line number Diff line number Diff line change 77 getInverseFilterForScope ,
88 SearchScope ,
99} from '../../../types/searchScope'
10- import { getThemeForNetwork } from '../../../styles/theme'
10+ import { getThemeForScope } from '../../../styles/theme'
1111import { RouteUtils } from '../../utils/route-utils'
1212import { SearchResults } from './hooks'
1313import { SearchResultsList } from './SearchResultsList'
@@ -31,7 +31,7 @@ export const ScopedSearchResultsView: FC<{
3131 const isNotInWantedScope = getInverseFilterForScope ( wantedScope )
3232 const wantedResults = searchResults . filter ( isInWantedScope )
3333 const otherResults = searchResults . filter ( isNotInWantedScope )
34- const notificationTheme = getThemeForNetwork (
34+ const notificationTheme = getThemeForScope (
3535 otherResults . some ( isOnMainnet ) ? Network . mainnet : Network . testnet ,
3636 )
3737
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import {
1515 TokenResult ,
1616 TransactionResult ,
1717} from './hooks'
18- import { getThemeForNetwork } from '../../../styles/theme'
18+ import { getThemeForScope } from '../../../styles/theme'
1919import { Network } from '../../../types/network'
2020import { SubPageCard } from '../../components/SubPageCard'
2121import { AllTokenPrices } from '../../../coin-gecko/api'
@@ -44,7 +44,7 @@ export const SearchResultsList: FC<{
4444 if ( ! numberOfResults ) {
4545 return null
4646 }
47- const theme = getThemeForNetwork ( networkForTheme )
47+ const theme = getThemeForScope ( networkForTheme )
4848
4949 return (
5050 < ResultListFrame theme = { theme } >
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export { testnetTheme } from './testnet/theme'
99export const tooltipDelay = 500
1010export const typingDelay = 1000
1111
12- export const getThemeForNetwork = ( network : Network ) : Theme => {
12+ export const getThemeForScope = ( network : Network ) : Theme => {
1313 switch ( network ) {
1414 case Network . mainnet :
1515 return defaultTheme
You can’t perform that action at this time.
0 commit comments