diff options
author | August Skare <post@augustskare.no> | 2018-11-19 16:57:18 +0800 |
---|---|---|
committer | August Skare <post@augustskare.no> | 2018-11-19 16:57:18 +0800 |
commit | e2607980eb2714cfacf75283db272706dcbc0c8c (patch) | |
tree | 2be2e7fd37936be8afa436b89913ece694c6f7cc /packages/dev-tools-pages/ts | |
parent | f519f5744e1742e13afe0cd915d6e314fcb579e8 (diff) | |
download | dexon-sol-tools-e2607980eb2714cfacf75283db272706dcbc0c8c.tar dexon-sol-tools-e2607980eb2714cfacf75283db272706dcbc0c8c.tar.gz dexon-sol-tools-e2607980eb2714cfacf75283db272706dcbc0c8c.tar.bz2 dexon-sol-tools-e2607980eb2714cfacf75283db272706dcbc0c8c.tar.lz dexon-sol-tools-e2607980eb2714cfacf75283db272706dcbc0c8c.tar.xz 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')
-rw-r--r-- | packages/dev-tools-pages/ts/components/Animations/index.tsx | 7 |
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; |