diff options
| author | Oskar <oskar@mullvad.net> | 2024-10-11 17:11:54 +0200 |
|---|---|---|
| committer | Oskar <oskar@mullvad.net> | 2024-10-22 15:18:10 +0200 |
| commit | 2deedc796ab42b8b20fa9db0e2d048ba11c2e21f (patch) | |
| tree | cf84c77cfd9d1a6f224c48ba53e10c082af9e1e4 /gui/src/renderer/components/select-location | |
| parent | 1666ff934d648dc88f213a90dde96b1b0eca7692 (diff) | |
| download | mullvadvpn-2deedc796ab42b8b20fa9db0e2d048ba11c2e21f.tar.xz mullvadvpn-2deedc796ab42b8b20fa9db0e2d048ba11c2e21f.zip | |
Split utility-hooks into two files
Diffstat (limited to 'gui/src/renderer/components/select-location')
6 files changed, 8 insertions, 7 deletions
diff --git a/gui/src/renderer/components/select-location/CustomListDialogs.tsx b/gui/src/renderer/components/select-location/CustomListDialogs.tsx index 8bd9af9b02..4cc42c0623 100644 --- a/gui/src/renderer/components/select-location/CustomListDialogs.tsx +++ b/gui/src/renderer/components/select-location/CustomListDialogs.tsx @@ -13,7 +13,7 @@ import { messages } from '../../../shared/gettext'; import log from '../../../shared/logging'; import { useAppContext } from '../../context'; import { formatHtml } from '../../lib/html-formatter'; -import { useBoolean } from '../../lib/utilityHooks'; +import { useBoolean } from '../../lib/utility-hooks'; import { useSelector } from '../../redux/store'; import * as AppButton from '../AppButton'; import * as Cell from '../cell'; diff --git a/gui/src/renderer/components/select-location/CustomLists.tsx b/gui/src/renderer/components/select-location/CustomLists.tsx index 348baddd23..1f4c77ed6b 100644 --- a/gui/src/renderer/components/select-location/CustomLists.tsx +++ b/gui/src/renderer/components/select-location/CustomLists.tsx @@ -6,7 +6,7 @@ import { CustomListError, CustomLists, RelayLocation } from '../../../shared/dae import { messages } from '../../../shared/gettext'; import log from '../../../shared/logging'; import { useAppContext } from '../../context'; -import { useBoolean, useStyledRef } from '../../lib/utilityHooks'; +import { useBoolean, useStyledRef } from '../../lib/utility-hooks'; import Accordion from '../Accordion'; import * as Cell from '../cell'; import { measurements } from '../common-styles'; diff --git a/gui/src/renderer/components/select-location/LocationRow.tsx b/gui/src/renderer/components/select-location/LocationRow.tsx index 70f0a2765b..a47c1dd646 100644 --- a/gui/src/renderer/components/select-location/LocationRow.tsx +++ b/gui/src/renderer/components/select-location/LocationRow.tsx @@ -9,7 +9,7 @@ import { import { messages } from '../../../shared/gettext'; import log from '../../../shared/logging'; import { useAppContext } from '../../context'; -import { useBoolean, useStyledRef } from '../../lib/utilityHooks'; +import { useBoolean, useStyledRef } from '../../lib/utility-hooks'; import { useSelector } from '../../redux/store'; import Accordion from '../Accordion'; import * as Cell from '../cell'; diff --git a/gui/src/renderer/components/select-location/RelayListContext.tsx b/gui/src/renderer/components/select-location/RelayListContext.tsx index ce9ef9be65..3165a95824 100644 --- a/gui/src/renderer/components/select-location/RelayListContext.tsx +++ b/gui/src/renderer/components/select-location/RelayListContext.tsx @@ -10,11 +10,11 @@ import { searchForLocations, } from '../../lib/filter-locations'; import { - useEffectEvent, useNormalBridgeSettings, useNormalRelaySettings, useTunnelProtocol, -} from '../../lib/utilityHooks'; +} from '../../lib/relay-settings-hooks'; +import { useEffectEvent } from '../../lib/utility-hooks'; import { IRelayLocationCountryRedux } from '../../redux/settings/reducers'; import { useSelector } from '../../redux/store'; import { useCustomListsRelayList } from './custom-list-helpers'; diff --git a/gui/src/renderer/components/select-location/ScrollPositionContext.tsx b/gui/src/renderer/components/select-location/ScrollPositionContext.tsx index 1d72f6abe8..55ee8dae97 100644 --- a/gui/src/renderer/components/select-location/ScrollPositionContext.tsx +++ b/gui/src/renderer/components/select-location/ScrollPositionContext.tsx @@ -2,7 +2,8 @@ import { Action } from 'history'; import React, { useCallback, useContext, useEffect, useMemo, useRef } from 'react'; import { useHistory } from '../../lib/history'; -import { useNormalRelaySettings, useStyledRef } from '../../lib/utilityHooks'; +import { useNormalRelaySettings } from '../../lib/relay-settings-hooks'; +import { useStyledRef } from '../../lib/utility-hooks'; import { CustomScrollbarsRef } from '../CustomScrollbars'; import { LocationType } from './select-location-types'; import { useSelectLocationContext } from './SelectLocationContainer'; diff --git a/gui/src/renderer/components/select-location/SelectLocation.tsx b/gui/src/renderer/components/select-location/SelectLocation.tsx index b48f24844b..506c836548 100644 --- a/gui/src/renderer/components/select-location/SelectLocation.tsx +++ b/gui/src/renderer/components/select-location/SelectLocation.tsx @@ -8,8 +8,8 @@ import { useRelaySettingsUpdater } from '../../lib/constraint-updater'; import { daitaFilterActive, filterSpecialLocations } from '../../lib/filter-locations'; import { useHistory } from '../../lib/history'; import { formatHtml } from '../../lib/html-formatter'; +import { useNormalRelaySettings } from '../../lib/relay-settings-hooks'; import { RoutePath } from '../../lib/routes'; -import { useNormalRelaySettings } from '../../lib/utilityHooks'; import { useSelector } from '../../redux/store'; import * as Cell from '../cell'; import { useFilteredProviders } from '../Filter'; |
