diff options
author | Fabio Berger <me@fabioberger.com> | 2018-10-17 07:37:56 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-10-17 07:37:56 +0800 |
commit | 18c31a3bc045d9e3ccc1e17573f879c2d49cecfe (patch) | |
tree | 1c185a3f522691e42acd7de533a0e3b9ff3da82b /packages/website/ts/components/ui | |
parent | fdefa5952cb6cb6e1dce42e862dbc676690cdcbb (diff) | |
download | dexon-sol-tools-18c31a3bc045d9e3ccc1e17573f879c2d49cecfe.tar dexon-sol-tools-18c31a3bc045d9e3ccc1e17573f879c2d49cecfe.tar.gz dexon-sol-tools-18c31a3bc045d9e3ccc1e17573f879c2d49cecfe.tar.bz2 dexon-sol-tools-18c31a3bc045d9e3ccc1e17573f879c2d49cecfe.tar.lz dexon-sol-tools-18c31a3bc045d9e3ccc1e17573f879c2d49cecfe.tar.xz dexon-sol-tools-18c31a3bc045d9e3ccc1e17573f879c2d49cecfe.tar.zst dexon-sol-tools-18c31a3bc045d9e3ccc1e17573f879c2d49cecfe.zip |
chore: Add topBar menu items to mobile drawer
Diffstat (limited to 'packages/website/ts/components/ui')
-rw-r--r-- | packages/website/ts/components/ui/button.tsx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/website/ts/components/ui/button.tsx b/packages/website/ts/components/ui/button.tsx index ccaadc800..2a6a1f477 100644 --- a/packages/website/ts/components/ui/button.tsx +++ b/packages/website/ts/components/ui/button.tsx @@ -16,6 +16,7 @@ export interface ButtonProps { type?: string; isDisabled?: boolean; onClick?: (event: React.MouseEvent<HTMLElement>) => void; + textAlign?: string; } const PlainButton: React.StatelessComponent<ButtonProps> = ({ children, isDisabled, onClick, type, className }) => ( @@ -35,6 +36,7 @@ export const Button = styled(PlainButton)` outline: none; font-family: ${props => props.fontFamily}; width: ${props => props.width}; + text-align: ${props => props.textAlign}; background-color: ${props => props.backgroundColor}; border: ${props => (props.borderColor ? `1px solid ${props.borderColor}` : 'none')}; &:hover { @@ -59,6 +61,7 @@ Button.defaultProps = { fontFamily: 'Roboto', isDisabled: false, padding: '0.8em 2.2em', + textAlign: 'center', }; Button.displayName = 'Button'; |