diff options
| author | Oliver <oliver@mohlin.dev> | 2025-05-30 10:57:36 +0200 |
|---|---|---|
| committer | Markus Pettersson <markus.pettersson@mullvad.net> | 2025-06-03 08:51:02 +0200 |
| commit | 785fe79d83bd925263c72e76d6729bee34553261 (patch) | |
| tree | 6e4561abc868f0142f3a1b212e3f1f2b1b7cdcd3 | |
| parent | e9f147b5228237a0a7528565de1a094455678627 (diff) | |
| download | mullvadvpn-785fe79d83bd925263c72e76d6729bee34553261.tar.xz mullvadvpn-785fe79d83bd925263c72e76d6729bee34553261.zip | |
Export NavigationListItem as namespace
| -rw-r--r-- | desktop/packages/mullvad-vpn/src/renderer/components/NavigationListItem.tsx | 11 |
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 }; |
