summaryrefslogtreecommitdiffhomepage
path: root/gui/src
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2021-12-06 10:13:54 +0100
committerOskar Nyberg <oskar@mullvad.net>2022-01-03 13:48:03 +0100
commit4e727b0bdbb4d2fa2cb1842b9382b182c8564eb5 (patch)
treeca1975339b0e260f2863f823273f72477a136902 /gui/src
parentace538ae171575e66cd3b76c65f13464f0edc92b (diff)
downloadmullvadvpn-4e727b0bdbb4d2fa2cb1842b9382b182c8564eb5.tar.xz
mullvadvpn-4e727b0bdbb4d2fa2cb1842b9382b182c8564eb5.zip
Rename ExitLocations component to Locations
Diffstat (limited to 'gui/src')
-rw-r--r--gui/src/renderer/components/Locations.tsx (renamed from gui/src/renderer/components/ExitLocations.tsx)12
1 files changed, 5 insertions, 7 deletions
diff --git a/gui/src/renderer/components/ExitLocations.tsx b/gui/src/renderer/components/Locations.tsx
index e4174a0e7c..2de2f6072c 100644
--- a/gui/src/renderer/components/ExitLocations.tsx
+++ b/gui/src/renderer/components/Locations.tsx
@@ -7,7 +7,7 @@ import LocationList, {
RelayLocations,
} from './LocationList';
-interface IExitLocationsProps {
+interface ILocationsProps {
source: IRelayLocationRedux[];
defaultExpandedLocations?: RelayLocation[];
selectedValue?: RelayLocation;
@@ -17,10 +17,7 @@ interface IExitLocationsProps {
onTransitionEnd?: () => void;
}
-const ExitLocations = React.forwardRef(function ExitLocationsT(
- props: IExitLocationsProps,
- ref: React.Ref<LocationList<never>>,
-) {
+function Locations(props: ILocationsProps, ref: React.Ref<LocationList<never>>) {
const selectedValue: LocationSelection<never> | undefined = props.selectedValue
? { type: LocationSelectionType.relay, value: props.selectedValue }
: undefined;
@@ -39,6 +36,7 @@ const ExitLocations = React.forwardRef(function ExitLocationsT(
/>
</LocationList>
);
-});
+}
-export default ExitLocations;
+export const ExitLocations = React.forwardRef(Locations);
+export const EntryLocations = React.forwardRef(Locations);