diff --git a/packages/core-design/src/components/Fields/Light/TextareaLight/TextareaLight.tsx b/packages/core-design/src/components/Fields/Light/TextareaLight/TextareaLight.tsx index 41a4a09c..78875080 100644 --- a/packages/core-design/src/components/Fields/Light/TextareaLight/TextareaLight.tsx +++ b/packages/core-design/src/components/Fields/Light/TextareaLight/TextareaLight.tsx @@ -1,7 +1,6 @@ import styled from '@emotion/styled' import { InputLight } from '../InputLight' import { base, isHovered, hasError, isFocused, isSuccessed } from './TextareaLight.styles' -// import { PropsOf } from 'emotion-theming/types/helper' import { PropsOf } from '@emotion/react' const InputLightAsTextarea = InputLight.withComponent('textarea') diff --git a/packages/core-design/src/components/PictureForAllResolutions/PictureForAllResolutions.tsx b/packages/core-design/src/components/PictureForAllResolutions/PictureForAllResolutions.tsx index e1e9d718..627f3189 100644 --- a/packages/core-design/src/components/PictureForAllResolutions/PictureForAllResolutions.tsx +++ b/packages/core-design/src/components/PictureForAllResolutions/PictureForAllResolutions.tsx @@ -1,6 +1,6 @@ import * as React from 'react' import styled from '@emotion/styled' -import { withTheme } from 'emotion-theming' +import { withTheme } from '@emotion/react' import { isEmpty } from 'ramda' import styles from './PictureForAllResolutions.styles' import flattenObj from '../../utils/flattenObj' @@ -40,8 +40,8 @@ const PictureForAllResolutionsOrigin: React.FC = ({ const extensions = getFilesExtensions(pathToImagesFolder) let defaultExtension - if (extensions.filter(e => e !== 'webp').length === 1) { - defaultExtension = extensions.filter(e => e !== 'webp')[0] + if (extensions.filter((e) => e !== 'webp').length === 1) { + defaultExtension = extensions.filter((e) => e !== 'webp')[0] } else if (!extension) { throw new Error( `The provided images have ${extensions.length} different extensions, @@ -55,12 +55,12 @@ const PictureForAllResolutionsOrigin: React.FC = ({ return ( - {customResolutions.map(resolution => { + {customResolutions.map((resolution) => { const mediaRule = mediaRulesByResoluton[resolution].slice(7) return ( - {extensions.map(extensionValue => ( + {extensions.map((extensionValue) => (