Skip to content

Commit

Permalink
fix: COM-3082 удалил emotion-theming
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtyomResh committed Jan 27, 2021
1 parent fa48213 commit aed4e58
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -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')
Expand Down
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -40,8 +40,8 @@ const PictureForAllResolutionsOrigin: React.FC<Props & ThemeProps> = ({
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,
Expand All @@ -55,12 +55,12 @@ const PictureForAllResolutionsOrigin: React.FC<Props & ThemeProps> = ({
return (
<React.Fragment>
<picture className={className}>
{customResolutions.map(resolution => {
{customResolutions.map((resolution) => {
const mediaRule = mediaRulesByResoluton[resolution].slice(7)

return (
<React.Fragment key={resolution}>
{extensions.map(extensionValue => (
{extensions.map((extensionValue) => (
<source
key={extensionValue}
media={mediaRule}
Expand Down
1 change: 0 additions & 1 deletion packages/core-scripts/templates/package.json.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"cross-env": "^5.2.0",
"express": "^4.17.1",
"express-static-gzip": "^2.0.5",
"emotion-theming": "^10.0.10",
"next": "8.0.4",
"next-compose-plugins": "^2.1.1",
"next-fonts": "^0.17.0",
Expand Down

0 comments on commit aed4e58

Please sign in to comment.