diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-06-16 09:02:33 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-06-16 09:02:46 +0800 |
commit | 0cf99271328a0bee0730a33659fe30aa426c59da (patch) | |
tree | b43aab0830f07095790fa81be52a1ec8f59d24bb /packages/website/ts/components/ui | |
parent | 5993125cc7d5129aead37a06663741d42ff0189e (diff) | |
download | dexon-sol-tools-0cf99271328a0bee0730a33659fe30aa426c59da.tar dexon-sol-tools-0cf99271328a0bee0730a33659fe30aa426c59da.tar.gz dexon-sol-tools-0cf99271328a0bee0730a33659fe30aa426c59da.tar.bz2 dexon-sol-tools-0cf99271328a0bee0730a33659fe30aa426c59da.tar.lz dexon-sol-tools-0cf99271328a0bee0730a33659fe30aa426c59da.tar.xz dexon-sol-tools-0cf99271328a0bee0730a33659fe30aa426c59da.tar.zst dexon-sol-tools-0cf99271328a0bee0730a33659fe30aa426c59da.zip |
Add all steps to their own file
Diffstat (limited to 'packages/website/ts/components/ui')
-rw-r--r-- | packages/website/ts/components/ui/container.tsx | 1 | ||||
-rw-r--r-- | packages/website/ts/components/ui/icon_button.tsx | 9 |
2 files changed, 6 insertions, 4 deletions
diff --git a/packages/website/ts/components/ui/container.tsx b/packages/website/ts/components/ui/container.tsx index d5665ec5d..1776345da 100644 --- a/packages/website/ts/components/ui/container.tsx +++ b/packages/website/ts/components/ui/container.tsx @@ -18,6 +18,7 @@ export interface ContainerProps { isHidden?: boolean; className?: string; position?: 'absolute' | 'fixed' | 'relative' | 'unset'; + display?: 'inline-block' | 'block' | 'inline-flex' | 'inline'; top?: string; left?: string; right?: string; diff --git a/packages/website/ts/components/ui/icon_button.tsx b/packages/website/ts/components/ui/icon_button.tsx index 2f5172f05..13cd239da 100644 --- a/packages/website/ts/components/ui/icon_button.tsx +++ b/packages/website/ts/components/ui/icon_button.tsx @@ -5,15 +5,15 @@ import * as React from 'react'; export interface IconButtonProps { iconName: string; labelText?: string; - onClick: () => void; + onClick?: () => void; color?: string; + display?: string; } interface IconButtonState { isHovering: boolean; } export class IconButton extends React.Component<IconButtonProps, IconButtonState> { public static defaultProps: Partial<IconButtonProps> = { - onClick: _.noop, labelText: '', color: colors.mediumBlue, }; @@ -26,8 +26,9 @@ export class IconButton extends React.Component<IconButtonProps, IconButtonState public render(): React.ReactNode { const styles: Styles = { root: { - cursor: 'pointer', - opacity: this.state.isHovering ? 0.5 : 1, + cursor: this.props.onClick ? 'pointer' : 'undefined', + opacity: this.state.isHovering && this.props.onClick ? 0.5 : 1, + display: this.props.display, }, icon: { color: this.props.color, |