diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-07-03 16:51:59 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-07-03 16:51:59 +0800 |
commit | f2af6e4b3ae71abdd068a88bd5d686970649fe8d (patch) | |
tree | b9183eab7714d1e6aad269ae14dd49d7d1278f15 /packages/website/ts | |
parent | 86d4ffe7e561ec72aa41300fd6c1e8f493ba0306 (diff) | |
download | dexon-0x-contracts-f2af6e4b3ae71abdd068a88bd5d686970649fe8d.tar.gz dexon-0x-contracts-f2af6e4b3ae71abdd068a88bd5d686970649fe8d.tar.zst dexon-0x-contracts-f2af6e4b3ae71abdd068a88bd5d686970649fe8d.zip |
Add optional onClick to Link simple menu item
Diffstat (limited to 'packages/website/ts')
-rw-r--r-- | packages/website/ts/components/ui/simple_menu.tsx | 9 |
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> ); }; |