summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOliver <oliver@mohlin.dev>2025-01-21 11:16:07 +0100
committerMarkus Pettersson <markus.pettersson@mullvad.net>2025-01-22 13:08:18 +0100
commit7db491384567d0a5f4fee85d2a20cd4ccec961d5 (patch)
tree43b0dba324decb2da7f54a820f2aa75ce7192771
parente515f671c04ce54c310959eeffbc26300514771c (diff)
downloadmullvadvpn-7db491384567d0a5f4fee85d2a20cd4ccec961d5.tar.xz
mullvadvpn-7db491384567d0a5f4fee85d2a20cd4ccec961d5.zip
Remove link to external changelog
-rw-r--r--desktop/packages/mullvad-vpn/src/config.json3
-rw-r--r--desktop/packages/mullvad-vpn/src/renderer/components/views/changelog/ChangelogView.tsx32
2 files changed, 2 insertions, 33 deletions
diff --git a/desktop/packages/mullvad-vpn/src/config.json b/desktop/packages/mullvad-vpn/src/config.json
index 43229834ca..a77c47de45 100644
--- a/desktop/packages/mullvad-vpn/src/config.json
+++ b/desktop/packages/mullvad-vpn/src/config.json
@@ -4,8 +4,7 @@
"purchase": "https://mullvad.net/account/",
"faq": "https://mullvad.net/help/tag/mullvad-app/",
"privacyGuide": "https://mullvad.net/help/first-steps-towards-online-privacy/",
- "download": "https://mullvad.net/download/vpn/",
- "changelog": "https://github.com/mullvad/mullvadvpn-app/blob/main/CHANGELOG.md"
+ "download": "https://mullvad.net/download/vpn/"
},
"colors": {
"darkerBlue": "rgba(25, 38, 56, 0.95)",
diff --git a/desktop/packages/mullvad-vpn/src/renderer/components/views/changelog/ChangelogView.tsx b/desktop/packages/mullvad-vpn/src/renderer/components/views/changelog/ChangelogView.tsx
index 9fe23132d7..682d48feb7 100644
--- a/desktop/packages/mullvad-vpn/src/renderer/components/views/changelog/ChangelogView.tsx
+++ b/desktop/packages/mullvad-vpn/src/renderer/components/views/changelog/ChangelogView.tsx
@@ -1,15 +1,11 @@
-import { useCallback } from 'react';
import styled from 'styled-components';
-import { links } from '../../../../config.json';
import { messages } from '../../../../shared/gettext';
-import { useAppContext } from '../../../context';
-import { BodySmall, Button, Container, Flex, TitleBig, TitleLarge } from '../../../lib/components';
+import { BodySmall, Container, Flex, TitleBig, TitleLarge } from '../../../lib/components';
import { Colors, Spacings } from '../../../lib/foundations';
import { useHistory } from '../../../lib/history';
import { useSelector } from '../../../redux/store';
import { AppNavigationHeader } from '../../';
-import ImageView from '../../ImageView';
import { BackAction } from '../../KeyboardNavigation';
import { Layout, SettingsContainer } from '../../Layout';
import { NavigationContainer } from '../../NavigationContainer';
@@ -24,21 +20,11 @@ const StyledList = styled(Flex)({
},
});
-const StyledFooter = styled(Flex)({
- position: 'sticky',
- minHeight: '64px',
- bottom: 0,
- background: Colors.darkBlue,
-});
-
export const ChangelogView = () => {
const { pop } = useHistory();
- const { openUrl } = useAppContext();
const changelog = useSelector((state) => state.userInterface.changelog);
const version = useSelector((state) => state.version.current);
- const url = links.changelog;
- const openDownloadLink = useCallback(() => openUrl(url), [openUrl, url]);
return (
<BackAction action={pop}>
<Layout>
@@ -76,22 +62,6 @@ export const ChangelogView = () => {
</NavigationScrollbars>
</NavigationContainer>
</SettingsContainer>
- <StyledFooter
- $padding={{ horizontal: Spacings.spacing6 }}
- $alignItems="center"
- $justifyContent="center">
- <Button
- onClick={openDownloadLink}
- trailing={
- <ImageView
- source="icon-extLink"
- aria-label={messages.pgettext('accessibility', 'Opens externally')}
- tintColor={Colors.white}
- />
- }>
- {messages.pgettext('changelog', 'See full changelog')}
- </Button>
- </StyledFooter>
</Layout>
</BackAction>
);