diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-06-28 06:14:21 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-06-28 06:14:21 +0800 |
commit | 47a267c3fa3498793568da79ebfc9b40c3d7129d (patch) | |
tree | e9ffb007bcb7146050b561a35d556247300afd72 /packages/website/ts/components/ui | |
parent | 36836eb942dbdcf64dd211b36523f3b98af2e6cb (diff) | |
download | dexon-0x-contracts-47a267c3fa3498793568da79ebfc9b40c3d7129d.tar dexon-0x-contracts-47a267c3fa3498793568da79ebfc9b40c3d7129d.tar.gz dexon-0x-contracts-47a267c3fa3498793568da79ebfc9b40c3d7129d.tar.bz2 dexon-0x-contracts-47a267c3fa3498793568da79ebfc9b40c3d7129d.tar.lz dexon-0x-contracts-47a267c3fa3498793568da79ebfc9b40c3d7129d.tar.xz dexon-0x-contracts-47a267c3fa3498793568da79ebfc9b40c3d7129d.tar.zst dexon-0x-contracts-47a267c3fa3498793568da79ebfc9b40c3d7129d.zip |
Clicking overlay closes onboarding
Diffstat (limited to 'packages/website/ts/components/ui')
-rw-r--r-- | packages/website/ts/components/ui/overlay.tsx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/website/ts/components/ui/overlay.tsx b/packages/website/ts/components/ui/overlay.tsx index 8b126a6d5..da26317de 100644 --- a/packages/website/ts/components/ui/overlay.tsx +++ b/packages/website/ts/components/ui/overlay.tsx @@ -4,7 +4,6 @@ import * as React from 'react'; import { zIndex } from 'ts/style/z_index'; export interface OverlayProps { - children?: React.ReactNode; style?: React.CSSProperties; onClick?: () => void; } @@ -19,7 +18,7 @@ const style: React.CSSProperties = { backgroundColor: 'rgba(0, 0, 0, 0.6)', }; -export const Overlay: React.StatelessComponent = (props: OverlayProps) => ( +export const Overlay: React.StatelessComponent<OverlayProps> = props => ( <div style={{ ...style, ...props.style }} onClick={props.onClick}> {props.children} </div> |