aboutsummaryrefslogtreecommitdiffstats
path: root/packages/dev-tools-pages/ts/components/Animations/index.tsx
diff options
context:
space:
mode:
authorAugust Skare <post@augustskare.no>2018-11-19 16:57:18 +0800
committerAugust Skare <post@augustskare.no>2018-11-19 16:57:18 +0800
commite2607980eb2714cfacf75283db272706dcbc0c8c (patch)
tree2be2e7fd37936be8afa436b89913ece694c6f7cc /packages/dev-tools-pages/ts/components/Animations/index.tsx
parentf519f5744e1742e13afe0cd915d6e314fcb579e8 (diff)
downloaddexon-sol-tools-e2607980eb2714cfacf75283db272706dcbc0c8c.tar.gz
dexon-sol-tools-e2607980eb2714cfacf75283db272706dcbc0c8c.tar.zst
dexon-sol-tools-e2607980eb2714cfacf75283db272706dcbc0c8c.zip
type function call for Container in Animation class
Diffstat (limited to 'packages/dev-tools-pages/ts/components/Animations/index.tsx')
-rw-r--r--packages/dev-tools-pages/ts/components/Animations/index.tsx7
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/dev-tools-pages/ts/components/Animations/index.tsx b/packages/dev-tools-pages/ts/components/Animations/index.tsx
index da3e78193..7f7b36c21 100644
--- a/packages/dev-tools-pages/ts/components/Animations/index.tsx
+++ b/packages/dev-tools-pages/ts/components/Animations/index.tsx
@@ -69,9 +69,12 @@ class BaseAnimation extends React.PureComponent<AnimationProps, AnimationState>
};
}
-const Container = styled.div`
+const Container =
+ styled.div <
+ AnimationProps >
+ `
width: 100%;
- height: ${(props: { height: number }) => props.height}px;
+ height: ${props => props.height}px;
position: absolute;
top: 40%;
left: 0;