Skip to content

Commit aed4e58

Browse files
committed
fix: COM-3082 удалил emotion-theming
1 parent fa48213 commit aed4e58

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

packages/core-design/src/components/Fields/Light/TextareaLight/TextareaLight.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import styled from '@emotion/styled'
22
import { InputLight } from '../InputLight'
33
import { base, isHovered, hasError, isFocused, isSuccessed } from './TextareaLight.styles'
4-
// import { PropsOf } from 'emotion-theming/types/helper'
54
import { PropsOf } from '@emotion/react'
65

76
const InputLightAsTextarea = InputLight.withComponent('textarea')

packages/core-design/src/components/PictureForAllResolutions/PictureForAllResolutions.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as React from 'react'
22
import styled from '@emotion/styled'
3-
import { withTheme } from 'emotion-theming'
3+
import { withTheme } from '@emotion/react'
44
import { isEmpty } from 'ramda'
55
import styles from './PictureForAllResolutions.styles'
66
import flattenObj from '../../utils/flattenObj'
@@ -40,8 +40,8 @@ const PictureForAllResolutionsOrigin: React.FC<Props & ThemeProps> = ({
4040
const extensions = getFilesExtensions(pathToImagesFolder)
4141
let defaultExtension
4242

43-
if (extensions.filter(e => e !== 'webp').length === 1) {
44-
defaultExtension = extensions.filter(e => e !== 'webp')[0]
43+
if (extensions.filter((e) => e !== 'webp').length === 1) {
44+
defaultExtension = extensions.filter((e) => e !== 'webp')[0]
4545
} else if (!extension) {
4646
throw new Error(
4747
`The provided images have ${extensions.length} different extensions,
@@ -55,12 +55,12 @@ const PictureForAllResolutionsOrigin: React.FC<Props & ThemeProps> = ({
5555
return (
5656
<React.Fragment>
5757
<picture className={className}>
58-
{customResolutions.map(resolution => {
58+
{customResolutions.map((resolution) => {
5959
const mediaRule = mediaRulesByResoluton[resolution].slice(7)
6060

6161
return (
6262
<React.Fragment key={resolution}>
63-
{extensions.map(extensionValue => (
63+
{extensions.map((extensionValue) => (
6464
<source
6565
key={extensionValue}
6666
media={mediaRule}

packages/core-scripts/templates/package.json.hbs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
"cross-env": "^5.2.0",
2424
"express": "^4.17.1",
2525
"express-static-gzip": "^2.0.5",
26-
"emotion-theming": "^10.0.10",
2726
"next": "8.0.4",
2827
"next-compose-plugins": "^2.1.1",
2928
"next-fonts": "^0.17.0",

0 commit comments

Comments
 (0)