summaryrefslogtreecommitdiffhomepage
path: root/gui/src
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2024-02-15 14:09:02 +0100
committerOskar Nyberg <oskar@mullvad.net>2024-02-15 16:04:29 +0100
commit3edd6599b191c5c241abb86d8938164aac4c150d (patch)
tree4fe313d6321541cea6e467470292b50aa0f17618 /gui/src
parentb96b06e0c54751c8ef6c636fd2ff94b25095203f (diff)
downloadmullvadvpn-3edd6599b191c5c241abb86d8938164aac4c150d.tar.xz
mullvadvpn-3edd6599b191c5c241abb86d8938164aac4c150d.zip
Switch to new navigation bar info icon for api access methods
Diffstat (limited to 'gui/src')
-rw-r--r--gui/src/renderer/components/ApiAccessMethods.tsx48
1 files changed, 24 insertions, 24 deletions
diff --git a/gui/src/renderer/components/ApiAccessMethods.tsx b/gui/src/renderer/components/ApiAccessMethods.tsx
index b5cffddc94..ccec1ce823 100644
--- a/gui/src/renderer/components/ApiAccessMethods.tsx
+++ b/gui/src/renderer/components/ApiAccessMethods.tsx
@@ -24,7 +24,13 @@ import InfoButton from './InfoButton';
import { BackAction } from './KeyboardNavigation';
import { Layout, SettingsContainer } from './Layout';
import { ModalAlert, ModalAlertType } from './Modal';
-import { NavigationBar, NavigationContainer, NavigationItems, TitleBarItem } from './NavigationBar';
+import {
+ NavigationBar,
+ NavigationContainer,
+ NavigationInfoButton,
+ NavigationItems,
+ TitleBarItem,
+} from './NavigationBar';
import SettingsHeader, { HeaderSubTitle, HeaderTitle } from './SettingsHeader';
import { StyledContent, StyledNavigationScrollbars, StyledSettingsContent } from './SettingsStyles';
import { SmallButton, SmallButtonColor, SmallButtonGroup } from './SmallButton';
@@ -33,10 +39,6 @@ const StyledContextMenuButton = styled(Cell.Icon)({
marginRight: '8px',
});
-const StyledTitleInfoButton = styled(InfoButton)({
- marginLeft: '12px',
-});
-
const StyledMethodInfoButton = styled(InfoButton)({
marginRight: '11px',
});
@@ -90,31 +92,29 @@ export default function ApiAccessMethods() {
messages.pgettext('navigation-bar', 'API access')
}
</TitleBarItem>
+ <NavigationInfoButton
+ message={[
+ messages.pgettext(
+ 'api-access-methods-view',
+ 'The app needs to communicate with a Mullvad API server to log you in, fetch server lists, and other critical operations.',
+ ),
+ messages.pgettext(
+ 'api-access-methods-view',
+ 'On some networks, where various types of censorship are being used, the API servers might not be directly reachable.',
+ ),
+ messages.pgettext(
+ 'api-access-methods-view',
+ 'This feature allows you to circumvent that censorship by adding custom ways to access the API via proxies and similar methods.',
+ ),
+ ]}
+ />
</NavigationItems>
</NavigationBar>
<StyledNavigationScrollbars fillContainer>
<StyledContent>
<SettingsHeader>
- <HeaderTitle>
- {messages.pgettext('navigation-bar', 'API access')}
- <StyledTitleInfoButton
- message={[
- messages.pgettext(
- 'api-access-methods-view',
- 'The app needs to communicate with a Mullvad API server to log you in, fetch server lists, and other critical operations.',
- ),
- messages.pgettext(
- 'api-access-methods-view',
- 'On some networks, where various types of censorship are being used, the API servers might not be directly reachable.',
- ),
- messages.pgettext(
- 'api-access-methods-view',
- 'This feature allows you to circumvent that censorship by adding custom ways to access the API via proxies and similar methods.',
- ),
- ]}
- />
- </HeaderTitle>
+ <HeaderTitle>{messages.pgettext('navigation-bar', 'API access')}</HeaderTitle>
<HeaderSubTitle>
{messages.pgettext(
'api-access-methods-view',