summaryrefslogtreecommitdiffhomepage
path: root/desktop
diff options
context:
space:
mode:
authorTobias Järvelöv <tobias.jarvelov@mullvad.net>2025-04-03 21:01:18 +0200
committerSebastian Holmin <sebastian.holmin@mullvad.net>2025-05-28 13:25:24 +0200
commit58a33b8dbec52c6972fe056a7764828aeee116df (patch)
tree8dd434a18db71abd86be8aed60c877670223d959 /desktop
parentc87891a44da59aff88c4820edee41310de724767 (diff)
downloadmullvadvpn-58a33b8dbec52c6972fe056a7764828aeee116df.tar.xz
mullvadvpn-58a33b8dbec52c6972fe056a7764828aeee116df.zip
Add a changelog list component
Diffstat (limited to 'desktop')
-rw-r--r--desktop/packages/mullvad-vpn/src/renderer/components/changelog-list/ChangelogList.tsx30
-rw-r--r--desktop/packages/mullvad-vpn/src/renderer/components/changelog-list/index.ts1
2 files changed, 31 insertions, 0 deletions
diff --git a/desktop/packages/mullvad-vpn/src/renderer/components/changelog-list/ChangelogList.tsx b/desktop/packages/mullvad-vpn/src/renderer/components/changelog-list/ChangelogList.tsx
new file mode 100644
index 0000000000..bc6b3a2295
--- /dev/null
+++ b/desktop/packages/mullvad-vpn/src/renderer/components/changelog-list/ChangelogList.tsx
@@ -0,0 +1,30 @@
+import styled from 'styled-components';
+
+import { IChangelog } from '../../../shared/ipc-types';
+import { BodySmall } from '../../lib/components';
+import { Flex } from '../../lib/components';
+import { Colors } from '../../lib/foundations';
+
+const StyledList = styled(Flex)`
+ list-style-type: disc;
+ padding-left: 0;
+ li {
+ margin-left: 1.5em;
+ }
+`;
+
+export type ChangelogListProps = {
+ changelog: IChangelog;
+};
+
+export function ChangelogList({ changelog }: ChangelogListProps) {
+ return (
+ <StyledList as="ul" $flexDirection="column" $gap="medium">
+ {changelog.map((item, i) => (
+ <BodySmall as="li" key={`${item}${i}`} color={Colors.white60}>
+ {item}
+ </BodySmall>
+ ))}
+ </StyledList>
+ );
+}
diff --git a/desktop/packages/mullvad-vpn/src/renderer/components/changelog-list/index.ts b/desktop/packages/mullvad-vpn/src/renderer/components/changelog-list/index.ts
new file mode 100644
index 0000000000..f560f0ebd6
--- /dev/null
+++ b/desktop/packages/mullvad-vpn/src/renderer/components/changelog-list/index.ts
@@ -0,0 +1 @@
+export * from './ChangelogList';