aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-07-03 16:51:59 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-07-03 16:51:59 +0800
commitf2af6e4b3ae71abdd068a88bd5d686970649fe8d (patch)
treeb9183eab7714d1e6aad269ae14dd49d7d1278f15 /packages/website
parent86d4ffe7e561ec72aa41300fd6c1e8f493ba0306 (diff)
downloaddexon-sol-tools-f2af6e4b3ae71abdd068a88bd5d686970649fe8d.tar
dexon-sol-tools-f2af6e4b3ae71abdd068a88bd5d686970649fe8d.tar.gz
dexon-sol-tools-f2af6e4b3ae71abdd068a88bd5d686970649fe8d.tar.bz2
dexon-sol-tools-f2af6e4b3ae71abdd068a88bd5d686970649fe8d.tar.lz
dexon-sol-tools-f2af6e4b3ae71abdd068a88bd5d686970649fe8d.tar.xz
dexon-sol-tools-f2af6e4b3ae71abdd068a88bd5d686970649fe8d.tar.zst
dexon-sol-tools-f2af6e4b3ae71abdd068a88bd5d686970649fe8d.zip
Add optional onClick to Link simple menu item
Diffstat (limited to 'packages/website')
-rw-r--r--packages/website/ts/components/ui/simple_menu.tsx9
1 files changed, 7 insertions, 2 deletions
diff --git a/packages/website/ts/components/ui/simple_menu.tsx b/packages/website/ts/components/ui/simple_menu.tsx
index c1cab07bd..74b8ef6ae 100644
--- a/packages/website/ts/components/ui/simple_menu.tsx
+++ b/packages/website/ts/components/ui/simple_menu.tsx
@@ -65,10 +65,15 @@ export const CopyAddressSimpleMenuItem: React.StatelessComponent<CopyAddressSimp
);
};
-export const GoToAccountManagementSimpleMenuItem: React.StatelessComponent<{}> = () => {
+export interface GoToAccountManagementSimpleMenuItemProps {
+ onClick?: () => void;
+}
+export const GoToAccountManagementSimpleMenuItem: React.StatelessComponent<
+ GoToAccountManagementSimpleMenuItemProps
+> = ({ onClick }) => {
return (
<Link to={`${WebsitePaths.Portal}/account`} style={{ textDecoration: 'none' }}>
- <SimpleMenuItem displayText="Manage Account..." onClick={_.noop} />
+ <SimpleMenuItem displayText="Manage Account..." onClick={onClick} />
</Link>
);
};