aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/pages/instant/action_link.tsx
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-12-20 07:56:12 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-12-20 07:56:12 +0800
commit473537e6e7e6b323b3768a479e1c2574a755c12c (patch)
treea2b69c28efd078e4f311bd4b2763d01582082f1f /packages/website/ts/pages/instant/action_link.tsx
parentace968a4fc5281d6688ac6de931a46728455c693 (diff)
downloaddexon-sol-tools-473537e6e7e6b323b3768a479e1c2574a755c12c.tar
dexon-sol-tools-473537e6e7e6b323b3768a479e1c2574a755c12c.tar.gz
dexon-sol-tools-473537e6e7e6b323b3768a479e1c2574a755c12c.tar.bz2
dexon-sol-tools-473537e6e7e6b323b3768a479e1c2574a755c12c.tar.lz
dexon-sol-tools-473537e6e7e6b323b3768a479e1c2574a755c12c.tar.xz
dexon-sol-tools-473537e6e7e6b323b3768a479e1c2574a755c12c.tar.zst
dexon-sol-tools-473537e6e7e6b323b3768a479e1c2574a755c12c.zip
remove unused instant pages
Diffstat (limited to 'packages/website/ts/pages/instant/action_link.tsx')
-rw-r--r--packages/website/ts/pages/instant/action_link.tsx46
1 files changed, 0 insertions, 46 deletions
diff --git a/packages/website/ts/pages/instant/action_link.tsx b/packages/website/ts/pages/instant/action_link.tsx
deleted file mode 100644
index c196f03ef..000000000
--- a/packages/website/ts/pages/instant/action_link.tsx
+++ /dev/null
@@ -1,46 +0,0 @@
-import * as _ from 'lodash';
-import * as React from 'react';
-
-import { Container } from 'ts/components/ui/container';
-import { Text } from 'ts/components/ui/text';
-import { colors } from 'ts/style/colors';
-import { utils } from 'ts/utils/utils';
-
-export interface ActionLinkProps {
- displayText: string;
- linkSrc?: string;
- onClick?: () => void;
- fontSize?: number;
- color?: string;
- className?: string;
-}
-
-export class ActionLink extends React.Component<ActionLinkProps> {
- public static defaultProps = {
- fontSize: 16,
- color: colors.white,
- };
- public render(): React.ReactNode {
- const { displayText, fontSize, color, className } = this.props;
- return (
- <Container className={`flex items-center ${className}`} onClick={this._handleClick} cursor="pointer">
- <Container>
- <Text fontSize="16px" fontColor={color}>
- {displayText}
- </Text>
- </Container>
- <Container paddingTop="1px" paddingLeft="6px">
- <i className="zmdi zmdi-chevron-right bold" style={{ fontSize, color }} />
- </Container>
- </Container>
- );
- }
-
- private readonly _handleClick = (event: React.MouseEvent<HTMLElement>) => {
- if (!_.isUndefined(this.props.onClick)) {
- this.props.onClick();
- } else if (!_.isUndefined(this.props.linkSrc)) {
- utils.openUrl(this.props.linkSrc);
- }
- };
-}