diff options
author | mhatvan <markus_hatvan@aon.at> | 2021-07-24 10:44:18 +0200 |
---|---|---|
committer | Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com> | 2021-07-28 13:29:57 +0000 |
commit | fd1c54cacdbd1798d806bd7ff91e60b3f0149420 (patch) | |
tree | db40e620763a4251ea4f15446e7dbbb74433bb67 /packages/forms/src/toggle | |
parent | Ignore 'docs' from Docker. [skip ci] (diff) | |
download | ferdium-app-fd1c54cacdbd1798d806bd7ff91e60b3f0149420.tar.gz ferdium-app-fd1c54cacdbd1798d806bd7ff91e60b3f0149420.tar.zst ferdium-app-fd1c54cacdbd1798d806bd7ff91e60b3f0149420.zip |
- updated classnames to 2.3.1 to use added type definitions
- remove stub type definitions from package.json
- set 'noImplicitAny' false until jss and react-jss packages are upgraded to use own type definitions
- add missing csstype to package/forms and update code to v3
Diffstat (limited to 'packages/forms/src/toggle')
-rw-r--r-- | packages/forms/src/toggle/index.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/forms/src/toggle/index.tsx b/packages/forms/src/toggle/index.tsx index ea335f281..50716450b 100644 --- a/packages/forms/src/toggle/index.tsx +++ b/packages/forms/src/toggle/index.tsx | |||
@@ -1,6 +1,6 @@ | |||
1 | import { Theme } from '@meetfranz/theme'; | 1 | import { Theme } from '@meetfranz/theme'; |
2 | import classnames from 'classnames'; | 2 | import classnames from 'classnames'; |
3 | import CSS from 'csstype'; | 3 | import * as CSS from 'csstype'; |
4 | import React, { Component } from 'react'; | 4 | import React, { Component } from 'react'; |
5 | import injectStyle from 'react-jss'; | 5 | import injectStyle from 'react-jss'; |
6 | 6 | ||
@@ -22,7 +22,7 @@ const styles = (theme: Theme) => ({ | |||
22 | background: theme.toggleBackground, | 22 | background: theme.toggleBackground, |
23 | borderRadius: theme.borderRadius, | 23 | borderRadius: theme.borderRadius, |
24 | height: theme.toggleHeight, | 24 | height: theme.toggleHeight, |
25 | position: 'relative' as CSS.PositionProperty, | 25 | position: 'relative' as CSS.Property.Position, |
26 | width: theme.toggleWidth, | 26 | width: theme.toggleWidth, |
27 | }, | 27 | }, |
28 | button: { | 28 | button: { |
@@ -33,7 +33,7 @@ const styles = (theme: Theme) => ({ | |||
33 | height: theme.toggleHeight - 2, | 33 | height: theme.toggleHeight - 2, |
34 | left: 1, | 34 | left: 1, |
35 | top: 1, | 35 | top: 1, |
36 | position: 'absolute' as CSS.PositionProperty, | 36 | position: 'absolute' as CSS.Property.Position, |
37 | transition: 'all .5s', | 37 | transition: 'all .5s', |
38 | }, | 38 | }, |
39 | buttonActive: { | 39 | buttonActive: { |