aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components/ui/simple_menu.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/website/ts/components/ui/simple_menu.tsx')
-rw-r--r--packages/website/ts/components/ui/simple_menu.tsx88
1 files changed, 0 insertions, 88 deletions
diff --git a/packages/website/ts/components/ui/simple_menu.tsx b/packages/website/ts/components/ui/simple_menu.tsx
deleted file mode 100644
index 45ee752e3..000000000
--- a/packages/website/ts/components/ui/simple_menu.tsx
+++ /dev/null
@@ -1,88 +0,0 @@
-import { Link } from '@0x/react-shared';
-import * as _ from 'lodash';
-import * as React from 'react';
-import * as CopyToClipboard from 'react-copy-to-clipboard';
-
-import { Container } from 'ts/components/ui/container';
-import { Text } from 'ts/components/ui/text';
-import { colors } from 'ts/style/colors';
-import { WebsitePaths } from 'ts/types';
-
-export interface SimpleMenuProps {
- minWidth?: number | string;
-}
-
-export const SimpleMenu: React.StatelessComponent<SimpleMenuProps> = ({ children, minWidth }) => {
- return (
- <Container
- marginLeft="16px"
- marginRight="16px"
- marginBottom="16px"
- minWidth={minWidth}
- className="flex flex-column"
- >
- {children}
- </Container>
- );
-};
-
-SimpleMenu.defaultProps = {
- minWidth: '220px',
-};
-
-export interface SimpleMenuItemProps {
- displayText: string;
- onClick?: () => void;
-}
-export const SimpleMenuItem: React.StatelessComponent<SimpleMenuItemProps> = ({ displayText, onClick }) => {
- // Falling back to _.noop for onclick retains the hovering effect
- return (
- <Container marginTop="16px" className="flex flex-column">
- <Text
- fontSize="14px"
- fontColor={colors.darkGrey}
- onClick={onClick || _.noop.bind(_)}
- hoverColor={colors.mediumBlue}
- >
- {displayText}
- </Text>
- </Container>
- );
-};
-
-export interface CopyAddressSimpleMenuItemProps {
- userAddress: string;
- onClick?: () => void;
-}
-export const CopyAddressSimpleMenuItem: React.StatelessComponent<CopyAddressSimpleMenuItemProps> = ({
- userAddress,
- onClick,
-}) => {
- return (
- <CopyToClipboard text={userAddress}>
- <SimpleMenuItem displayText="Copy Address to Clipboard" onClick={onClick} />
- </CopyToClipboard>
- );
-};
-
-export interface GoToAccountManagementSimpleMenuItemProps {
- onClick?: () => void;
-}
-export const GoToAccountManagementSimpleMenuItem: React.StatelessComponent<
- GoToAccountManagementSimpleMenuItemProps
-> = ({ onClick }) => {
- return (
- <Link to={`${WebsitePaths.Portal}/account`}>
- <SimpleMenuItem displayText="Manage Account..." onClick={onClick} />
- </Link>
- );
-};
-
-export interface DifferentWalletSimpleMenuItemProps {
- onClick?: () => void;
-}
-export const DifferentWalletSimpleMenuItem: React.StatelessComponent<DifferentWalletSimpleMenuItemProps> = ({
- onClick,
-}) => {
- return <SimpleMenuItem displayText="Use Ledger Wallet..." onClick={onClick} />;
-};