diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2022-05-03 10:20:32 +0200 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2022-05-19 10:04:19 +0200 |
| commit | 01e0d4fb35579c21b2eba9545a86b44a5866b077 (patch) | |
| tree | 462a585c77e2b9604fbbdd4edb048669bd286116 /gui/src | |
| parent | 0211a43e2f9e1b7beccaefd9a2a09672f1877fd8 (diff) | |
| download | mullvadvpn-01e0d4fb35579c21b2eba9545a86b44a5866b077.tar.xz mullvadvpn-01e0d4fb35579c21b2eba9545a86b44a5866b077.zip | |
Rename filter by provider view to filter
Diffstat (limited to 'gui/src')
| -rw-r--r-- | gui/src/renderer/components/AppRouter.tsx | 4 | ||||
| -rw-r--r-- | gui/src/renderer/components/Filter.tsx (renamed from gui/src/renderer/components/FilterByProvider.tsx) | 0 | ||||
| -rw-r--r-- | gui/src/renderer/containers/SelectLocationPage.tsx | 2 | ||||
| -rw-r--r-- | gui/src/renderer/lib/routes.ts | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/gui/src/renderer/components/AppRouter.tsx b/gui/src/renderer/components/AppRouter.tsx index 278ad0aafc..db69cbb80f 100644 --- a/gui/src/renderer/components/AppRouter.tsx +++ b/gui/src/renderer/components/AppRouter.tsx @@ -22,7 +22,7 @@ import { VoucherInput, VoucherVerificationSuccess, } from './ExpiredAccountAddTime'; -import FilterByProvider from './FilterByProvider'; +import Filter from './Filter'; import Focus, { IFocusHandle } from './Focus'; import Launch from './Launch'; import MainView from './MainView'; @@ -96,7 +96,7 @@ class AppRouter extends React.Component<IHistoryProps & IAppContext, IAppRoutesS <Route exact path={RoutePath.splitTunneling} component={SplitTunnelingSettings} /> <Route exact path={RoutePath.support} component={SupportPage} /> <Route exact path={RoutePath.selectLocation} component={SelectLocationPage} /> - <Route exact path={RoutePath.filterByProvider} component={FilterByProvider} /> + <Route exact path={RoutePath.filter} component={Filter} /> </Switch> </TransitionView> </TransitionContainer> diff --git a/gui/src/renderer/components/FilterByProvider.tsx b/gui/src/renderer/components/Filter.tsx index 335d8597d8..335d8597d8 100644 --- a/gui/src/renderer/components/FilterByProvider.tsx +++ b/gui/src/renderer/components/Filter.tsx diff --git a/gui/src/renderer/containers/SelectLocationPage.tsx b/gui/src/renderer/containers/SelectLocationPage.tsx index d14323457e..3606269323 100644 --- a/gui/src/renderer/containers/SelectLocationPage.tsx +++ b/gui/src/renderer/containers/SelectLocationPage.tsx @@ -76,7 +76,7 @@ const mapStateToProps = (state: IReduxState, props: IHistoryProps & IAppContext) const mapDispatchToProps = (_dispatch: ReduxDispatch, props: IHistoryProps & IAppContext) => { return { onClose: () => props.history.dismiss(), - onViewFilterByProvider: () => props.history.push(RoutePath.filterByProvider), + onViewFilterByProvider: () => props.history.push(RoutePath.filter), onSelectExitLocation: async (relayLocation: RelayLocation) => { // dismiss the view first props.history.dismiss(); diff --git a/gui/src/renderer/lib/routes.ts b/gui/src/renderer/lib/routes.ts index 994a9f6124..641b48781d 100644 --- a/gui/src/renderer/lib/routes.ts +++ b/gui/src/renderer/lib/routes.ts @@ -22,7 +22,7 @@ export enum RoutePath { splitTunneling = '/settings/advanced/split-tunneling', support = '/settings/support', selectLocation = '/select-location', - filterByProvider = '/select-location/filter-by-provider', + filter = '/select-location/filter', } export const disableDismissForRoutes = [ |
