aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components/ui
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-06-28 06:14:21 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-06-28 06:14:21 +0800
commit47a267c3fa3498793568da79ebfc9b40c3d7129d (patch)
treee9ffb007bcb7146050b561a35d556247300afd72 /packages/website/ts/components/ui
parent36836eb942dbdcf64dd211b36523f3b98af2e6cb (diff)
downloaddexon-sol-tools-47a267c3fa3498793568da79ebfc9b40c3d7129d.tar
dexon-sol-tools-47a267c3fa3498793568da79ebfc9b40c3d7129d.tar.gz
dexon-sol-tools-47a267c3fa3498793568da79ebfc9b40c3d7129d.tar.bz2
dexon-sol-tools-47a267c3fa3498793568da79ebfc9b40c3d7129d.tar.lz
dexon-sol-tools-47a267c3fa3498793568da79ebfc9b40c3d7129d.tar.xz
dexon-sol-tools-47a267c3fa3498793568da79ebfc9b40c3d7129d.tar.zst
dexon-sol-tools-47a267c3fa3498793568da79ebfc9b40c3d7129d.zip
Clicking overlay closes onboarding
Diffstat (limited to 'packages/website/ts/components/ui')
-rw-r--r--packages/website/ts/components/ui/overlay.tsx3
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>