From fd1c54cacdbd1798d806bd7ff91e60b3f0149420 Mon Sep 17 00:00:00 2001 From: mhatvan Date: Sat, 24 Jul 2021 10:44:18 +0200 Subject: - 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 --- packages/forms/src/toggle/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'packages/forms/src/toggle/index.tsx') 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 @@ import { Theme } from '@meetfranz/theme'; import classnames from 'classnames'; -import CSS from 'csstype'; +import * as CSS from 'csstype'; import React, { Component } from 'react'; import injectStyle from 'react-jss'; @@ -22,7 +22,7 @@ const styles = (theme: Theme) => ({ background: theme.toggleBackground, borderRadius: theme.borderRadius, height: theme.toggleHeight, - position: 'relative' as CSS.PositionProperty, + position: 'relative' as CSS.Property.Position, width: theme.toggleWidth, }, button: { @@ -33,7 +33,7 @@ const styles = (theme: Theme) => ({ height: theme.toggleHeight - 2, left: 1, top: 1, - position: 'absolute' as CSS.PositionProperty, + position: 'absolute' as CSS.Property.Position, transition: 'all .5s', }, buttonActive: { -- cgit v1.2.3-70-g09d2