aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-12-05 07:44:48 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-12-05 07:44:48 +0800
commitfeb715a08bba50f07600ef747246cb8417f98cfe (patch)
tree0533c3fd2e9c7203c3a8cda84f6ade7c9911ba37
parent8b659dbd77294f3d44f4c1fe75a62d6fec3fea15 (diff)
downloaddexon-sol-tools-feb715a08bba50f07600ef747246cb8417f98cfe.tar
dexon-sol-tools-feb715a08bba50f07600ef747246cb8417f98cfe.tar.gz
dexon-sol-tools-feb715a08bba50f07600ef747246cb8417f98cfe.tar.bz2
dexon-sol-tools-feb715a08bba50f07600ef747246cb8417f98cfe.tar.lz
dexon-sol-tools-feb715a08bba50f07600ef747246cb8417f98cfe.tar.xz
dexon-sol-tools-feb715a08bba50f07600ef747246cb8417f98cfe.tar.zst
dexon-sol-tools-feb715a08bba50f07600ef747246cb8417f98cfe.zip
fix(instant): remove extra container around the button
-rw-r--r--packages/instant/src/components/zero_ex_instant_overlay.tsx26
1 files changed, 15 insertions, 11 deletions
diff --git a/packages/instant/src/components/zero_ex_instant_overlay.tsx b/packages/instant/src/components/zero_ex_instant_overlay.tsx
index f823d050d..96e560691 100644
--- a/packages/instant/src/components/zero_ex_instant_overlay.tsx
+++ b/packages/instant/src/components/zero_ex_instant_overlay.tsx
@@ -21,17 +21,21 @@ export const ZeroExInstantOverlay: React.StatelessComponent<ZeroExInstantOverlay
<ZeroExInstantProvider {...rest}>
<Overlay zIndex={zIndex} className={OVERLAY_DIV_CLASS}>
<Flex height="100vh">
- <Container position="absolute" top="0px" right="0px" display={{ default: 'initial', sm: 'none' }}>
- <Container className={OVERLAY_CLOSE_BUTTON_DIV_CLASS}>
- <Icon
- height={18}
- width={18}
- color={ColorOption.white}
- icon="closeX"
- onClick={onClose}
- padding="2em 2em"
- />
- </Container>
+ <Container
+ className={OVERLAY_CLOSE_BUTTON_DIV_CLASS}
+ position="absolute"
+ top="0px"
+ right="0px"
+ display={{ default: 'initial', sm: 'none' }}
+ >
+ <Icon
+ height={18}
+ width={18}
+ color={ColorOption.white}
+ icon="closeX"
+ onClick={onClose}
+ padding="2em 2em"
+ />
</Container>
<Container
width={{ default: 'auto', sm: '100%' }}