Skip to content

Commit

Permalink
refactor: Apply codemod for cozy-ui 93.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cballevre committed Sep 22, 2023
1 parent 0c6fcc2 commit 04f9980
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/components/Apps/AppNavButtons.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PropTypes from 'prop-types'
import BottomIcon from 'cozy-ui/transpiled/react/Icons/Bottom'
import Icon from 'cozy-ui/transpiled/react/Icon'
import TopIcon from 'cozy-ui/transpiled/react/Icons/Top'
import { translate } from 'cozy-ui/transpiled/react/I18n'
import { translate } from 'cozy-ui/transpiled/react/providers/I18n'

import { ButtonCozyHome } from 'components/Apps/ButtonCozyHome'
import { getHomeApp } from 'lib/reducers'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Apps/AppsContent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { Component } from 'react'
import { connect } from 'react-redux'
import PropTypes from 'prop-types'

import { translate } from 'cozy-ui/transpiled/react/I18n'
import { translate } from 'cozy-ui/transpiled/react/providers/I18n'
import Icon from 'cozy-ui/transpiled/react/Icon'
import CloudIcon from 'cozy-ui/transpiled/react/Icons/Cloud'
import withBreakpoints from 'cozy-ui/transpiled/react/helpers/withBreakpoints'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Banner.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { Component } from 'react'
import { ButtonLink } from 'cozy-ui/transpiled/react/deprecated/Button'
import { translate } from 'cozy-ui/transpiled/react/I18n'
import { translate } from 'cozy-ui/transpiled/react/providers/I18n'

class Banner extends Component {
constructor(props) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Bar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { Component } from 'react'
import { connect } from 'react-redux'
import PropTypes from 'prop-types'

import { translate } from 'cozy-ui/transpiled/react/I18n'
import { translate } from 'cozy-ui/transpiled/react/providers/I18n'
import Icon from 'cozy-ui/transpiled/react/Icon'
import { isFlagshipApp } from 'cozy-device-helper'
import flag from 'cozy-flags'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Drawer.spec.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { Provider } from 'react-redux'

import I18n from 'cozy-ui/transpiled/react/I18n'
import I18n from 'cozy-ui/transpiled/react/providers/I18n'
import { createStore } from 'lib/store'
import enLocale from 'locales/en.json'
import { render, screen, fireEvent, act } from '@testing-library/react'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Settings/SettingsContent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import flag from 'cozy-flags'

import { isMobileApp } from 'cozy-device-helper'

import { translate } from 'cozy-ui/transpiled/react/I18n'
import { translate } from 'cozy-ui/transpiled/react/providers/I18n'
import Icon from 'cozy-ui/transpiled/react/Icon'
import OpenwithIcon from 'cozy-ui/transpiled/react/Icons/Openwith'
import PeopleIcon from 'cozy-ui/transpiled/react/Icons/People'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Settings/StorageData.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { translate } from 'cozy-ui/transpiled/react/I18n'
import { translate } from 'cozy-ui/transpiled/react/providers/I18n'

const StorageData = ({ t, data }) => {
const diskQuota = Number.isInteger(data.quota)
Expand Down
2 changes: 1 addition & 1 deletion src/components/Settings/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { connect } from 'react-redux'
import { compose } from 'redux'
import get from 'lodash/get'

import { translate } from 'cozy-ui/transpiled/react/I18n'
import { translate } from 'cozy-ui/transpiled/react/providers/I18n'
import { Button } from 'cozy-ui/transpiled/react/deprecated/Button'
import GearIcon from 'cozy-ui/transpiled/react/Icons/Gear'

Expand Down
4 changes: 2 additions & 2 deletions src/index.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* global __VERSION__ */

import { isMobileApp } from 'cozy-device-helper'
import { BreakpointsProvider } from 'cozy-ui/transpiled/react/hooks/useBreakpoints'
import { BreakpointsProvider } from 'cozy-ui/transpiled/react/providers/Breakpoints'

import stack from 'lib/stack'
import {
Expand Down Expand Up @@ -77,7 +77,7 @@ const renderBar = (barNode, options) => {
const React = require('react')
const { render } = require('react-dom')
const { connect, Provider } = require('react-redux')
const I18n = require('cozy-ui/transpiled/react/I18n').default
const I18n = require('cozy-ui/transpiled/react/providers/I18n').default
const Bar = require('components/Bar').default
const CozyProvider = require('cozy-client').CozyProvider

Expand Down
2 changes: 1 addition & 1 deletion src/lib/middlewares/appsI18n.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { extend as extendI18n } from 'cozy-ui/transpiled/react/I18n'
import { extend as extendI18n } from 'cozy-ui/transpiled/react/providers/I18n'
import { SET_LOCALE } from 'lib/reducers/locale'

const extendI18nWithApp = lang => app => {
Expand Down
2 changes: 1 addition & 1 deletion test/jestLib/I18n.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

import { I18n } from 'cozy-ui/transpiled/react/I18n'
import { I18n } from 'cozy-ui/transpiled/react/providers/I18n'

const I18nComponent = new I18n({
lang: 'en',
Expand Down

0 comments on commit 04f9980

Please sign in to comment.