summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOliver <oliver@mohlin.dev>2025-05-30 10:57:36 +0200
committerMarkus Pettersson <markus.pettersson@mullvad.net>2025-06-03 08:51:02 +0200
commit785fe79d83bd925263c72e76d6729bee34553261 (patch)
tree6e4561abc868f0142f3a1b212e3f1f2b1b7cdcd3
parente9f147b5228237a0a7528565de1a094455678627 (diff)
downloadmullvadvpn-785fe79d83bd925263c72e76d6729bee34553261.tar.xz
mullvadvpn-785fe79d83bd925263c72e76d6729bee34553261.zip
Export NavigationListItem as namespace
-rw-r--r--desktop/packages/mullvad-vpn/src/renderer/components/NavigationListItem.tsx11
1 files changed, 10 insertions, 1 deletions
diff --git a/desktop/packages/mullvad-vpn/src/renderer/components/NavigationListItem.tsx b/desktop/packages/mullvad-vpn/src/renderer/components/NavigationListItem.tsx
index f17b9772d1..1696c2db05 100644
--- a/desktop/packages/mullvad-vpn/src/renderer/components/NavigationListItem.tsx
+++ b/desktop/packages/mullvad-vpn/src/renderer/components/NavigationListItem.tsx
@@ -8,7 +8,7 @@ export type NavigationListItemProps = ListItemProps & {
to: RoutePath;
};
-export function NavigationListItem({ to, children, ...props }: NavigationListItemProps) {
+function NavigationListItem({ to, children, ...props }: NavigationListItemProps) {
const history = useHistory();
const navigate = React.useCallback(() => history.push(to), [history, to]);
@@ -22,3 +22,12 @@ export function NavigationListItem({ to, children, ...props }: NavigationListIte
</ListItem>
);
}
+const NavigationListItemNamespace = Object.assign(NavigationListItem, {
+ Label: ListItem.Label,
+ Group: ListItem.Group,
+ Text: ListItem.Text,
+ Footer: ListItem.Footer,
+ Icon: ListItem.Icon,
+});
+
+export { NavigationListItemNamespace as NavigationListItem };