🐛 withNamespaces, pas withI18n

pull/386/head
Mael 2018-11-23 16:15:44 +00:00
parent 3bbb8b93dd
commit a949860226
44 changed files with 90 additions and 90 deletions

View File

@ -2,7 +2,7 @@
import withTracker from 'Components/utils/withTracker'
import React, { Component } from 'react'
import { Trans, withI18n } from 'react-i18next'
import { Trans, withNamespaces } from 'react-i18next'
import { withRouter } from 'react-router-dom'
import { compose } from 'redux'
import safeLocalStorage from '../../storage/safeLocalStorage'
@ -149,7 +149,7 @@ const PageFeedbackWithRouter = ({ location, ...props }) => (
)
export default compose(
withI18n(),
withNamespaces(),
withTracker,
withRouter
)(PageFeedbackWithRouter)

View File

@ -1,7 +1,7 @@
import { compose } from 'ramda'
import React, { Component } from 'react'
import emoji from 'react-easy-emoji'
import { withI18n } from 'react-i18next'
import { withNamespaces } from 'react-i18next'
import { connect } from 'react-redux'
import { withRouter } from 'react-router'
@ -12,7 +12,7 @@ const languageCodeToEmoji = {
export default compose(
withRouter,
withI18n(),
withNamespaces(),
connect(
null,
dispatch => ({

View File

@ -1,9 +1,9 @@
import Overlay from 'Components/Overlay'
import { ScrollToTop } from 'Components/utils/Scroll'
import React, { Component } from 'react'
import { Trans, withI18n } from 'react-i18next'
import { Trans, withNamespaces } from 'react-i18next'
export const LegalNoticeContent = withI18n()(() => (
export const LegalNoticeContent = withNamespaces()(() => (
<>
<h1>
<Trans i18nKey="legalNotice.title">Mentions légales</Trans>

View File

@ -5,7 +5,7 @@ import {
} from 'Actions/actions'
import { compose } from 'ramda'
import React from 'react'
import { Trans, withI18n } from 'react-i18next'
import { Trans, withNamespaces } from 'react-i18next'
import { connect } from 'react-redux'
import { noUserInputSelector } from 'Selectors/analyseSelectors'
import { LinkButton } from 'Ui/Button'
@ -42,7 +42,7 @@ const PreviousSimulationBanner = ({
)
export default compose(
withI18n(),
withNamespaces(),
connect(
state => ({
previousSimulation: state.previousSimulation,

View File

@ -8,7 +8,7 @@ import {
} from 'Engine/rules.js'
import { compose, head, path } from 'ramda'
import React, { Component } from 'react'
import { Trans, withI18n } from 'react-i18next'
import { Trans, withNamespaces } from 'react-i18next'
import { connect } from 'react-redux'
import { withRouter } from 'react-router'
import { Link, Redirect } from 'react-router-dom'
@ -27,7 +27,7 @@ export default compose(
valuesToShow: !noUserInputSelector(state),
flatRules: flatRulesSelector(state)
})),
withI18n()
withNamespaces()
)(
class RulePage extends Component {
render() {
@ -81,7 +81,7 @@ const BackToSimulation = compose(
})
),
withRouter,
withI18n()
withNamespaces()
)(
// Triggers rerender when the language changes
class BackToSimulation extends Component {

View File

@ -3,7 +3,7 @@ import Fuse from 'fuse.js'
import { sortBy, pick } from 'ramda'
import React from 'react'
import Highlighter from 'react-highlight-words'
import { withI18n } from 'react-i18next'
import { withNamespaces } from 'react-i18next'
import { Link, Redirect } from 'react-router-dom'
import Select from 'react-select'
import 'react-select/dist/react-select.css'
@ -114,4 +114,4 @@ class SearchBar extends React.Component {
}
}
export default withI18n()(SearchBar)
export default withNamespaces()(SearchBar)

View File

@ -1,6 +1,6 @@
import { compose } from 'ramda'
import React, { Component } from 'react'
import { Trans, withI18n } from 'react-i18next'
import { Trans, withNamespaces } from 'react-i18next'
import { connect } from 'react-redux'
import { flatRulesSelector } from 'Selectors/analyseSelectors'
import { LinkButton } from 'Ui/Button'
@ -11,7 +11,7 @@ export default compose(
connect(state => ({
flatRules: flatRulesSelector(state)
})),
withI18n()
withNamespaces()
)(
class SearchButton extends Component {
componentDidMount() {

View File

@ -197,7 +197,7 @@ export default compose(
<strong> première estimation</strong> sur la base d'un
contrat générique. La législation française prévoit une
multitude de cas particuliers et de règles spécifiques qui
modifient considérablement les montant de l'embauche.
modifient considérablement les montants de l'embauche.
</Trans>
</p>
<p style={{ textAlign: 'center' }}>

View File

@ -2,7 +2,7 @@ import Scroll from 'Components/utils/Scroll'
import { getInputComponent } from 'Engine/generateQuestions'
import { compose } from 'ramda'
import React, { Component } from 'react'
import { withI18n } from 'react-i18next'
import { withNamespaces } from 'react-i18next'
import { connect } from 'react-redux'
import { reduxForm } from 'redux-form'
import {
@ -18,7 +18,7 @@ export default compose(
form: 'conversation',
destroyOnUnmount: false
}),
withI18n(),
withNamespaces(),
connect(state => ({
conversationStarted: state.conversationStarted,
themeColours: state.themeColours,

View File

@ -1,7 +1,7 @@
import { findRuleByDottedName } from 'Engine/rules'
import { compose } from 'ramda'
import React from 'react'
import { Trans, withI18n } from 'react-i18next'
import { Trans, withNamespaces } from 'react-i18next'
import { connect } from 'react-redux'
import {
flatRulesSelector,
@ -11,7 +11,7 @@ import { LinkButton } from 'Ui/Button'
import { capitalise0 } from '../../utils'
export default compose(
withI18n(),
withNamespaces(),
connect(
state => ({
flatRules: flatRulesSelector(state),

View File

@ -2,7 +2,7 @@ import classNames from 'classnames'
import Explicable from 'Components/conversation/Explicable'
import { compose } from 'ramda'
import React, { Component } from 'react'
import { withI18n } from 'react-i18next'
import { withNamespaces } from 'react-i18next'
import { connect } from 'react-redux'
import { change, Field } from 'redux-form'
import IgnoreStepButton from './IgnoreStepButton'
@ -35,7 +35,7 @@ export var FormDecorator = formType => RenderField =>
dispatch(change('conversation', field, value))
})
),
withI18n()
withNamespaces()
)(
class extends Component {
state = {

View File

@ -1,13 +1,13 @@
import HoverDecorator from 'Components/utils/HoverDecorator'
import { compose } from 'ramda'
import React, { Component } from 'react'
import { Trans, withI18n } from 'react-i18next'
import { Trans, withNamespaces } from 'react-i18next'
import './IgnoreStepButton.css'
import withColours from 'Components/utils/withColours'
export default compose(
HoverDecorator,
withI18n(),
withNamespaces(),
withColours
)(
class IgnoreStepButton extends Component {

View File

@ -2,7 +2,7 @@ import classnames from 'classnames'
import withColours from 'Components/utils/withColours'
import { compose } from 'ramda'
import { React, Component, T } from 'Components'
import { withI18n } from 'react-i18next'
import { withNamespaces } from 'react-i18next'
import { debounce } from '../../utils'
import { FormDecorator } from './FormDecorator'
import InputSuggestions from './InputSuggestions'
@ -12,7 +12,7 @@ import { formValueSelector } from 'redux-form'
export default compose(
FormDecorator('input'),
withI18n(),
withNamespaces(),
withColours,
connect(state => ({
period: formValueSelector('conversation')(state, 'période')

View File

@ -1,14 +1,14 @@
import withColours from 'Components/utils/withColours'
import { compose, toPairs } from 'ramda'
import React, { Component } from 'react'
import { withI18n } from 'react-i18next'
import { withNamespaces } from 'react-i18next'
import './InputSuggestions.css'
import { connect } from 'react-redux'
import { formValueSelector } from 'redux-form'
export default compose(
withColours,
withI18n(),
withNamespaces(),
connect(state => ({
period: formValueSelector('conversation')(state, 'période')
}))

View File

@ -2,7 +2,7 @@ import HoverDecorator from 'Components/utils/HoverDecorator'
import withColours from 'Components/utils/withColours'
import { compose, is } from 'ramda'
import React, { Component } from 'react'
import { Trans, withI18n } from 'react-i18next'
import { Trans, withNamespaces } from 'react-i18next'
import Explicable from './Explicable'
import { FormDecorator } from './FormDecorator'
import './Question.css'
@ -29,7 +29,7 @@ import { answer, answered } from './userAnswerButtonStyle'
// dont Question est un example
export default compose(
FormDecorator('question'),
withI18n(),
withNamespaces(),
withColours
)(
class Question extends Component {
@ -145,7 +145,7 @@ let RadioLabel = props => (
const RadioLabelContent = compose(
HoverDecorator,
withI18n(),
withNamespaces(),
withColours
)(
class RadioLabelContent extends Component {

View File

@ -2,11 +2,11 @@ import HoverDecorator from 'Components/utils/HoverDecorator'
import withColours from 'Components/utils/withColours'
import { compose } from 'ramda'
import React, { Component } from 'react'
import { Trans, withI18n } from 'react-i18next'
import { Trans, withNamespaces } from 'react-i18next'
export default compose(
HoverDecorator,
withI18n(),
withNamespaces(),
withColours
)(
class SendButton extends Component {

View File

@ -1,11 +1,11 @@
import { compose } from 'ramda'
import React, { Component } from 'react'
import { Trans, withI18n } from 'react-i18next'
import { Trans, withNamespaces } from 'react-i18next'
import { FormDecorator } from './FormDecorator'
export default compose(
FormDecorator('text-area'),
withI18n()
withNamespaces()
)(
class Input extends Component {
render() {

View File

@ -2,12 +2,12 @@ import classNames from 'classnames'
import { makeJsx } from 'Engine/evaluation'
import { compose, path, values } from 'ramda'
import React from 'react'
import { Trans, withI18n } from 'react-i18next'
import { Trans, withNamespaces } from 'react-i18next'
import './Algorithm.css'
// The showValues prop is passed as a context. It used to be delt in CSS (not(.showValues) display: none), both coexist right now
import { ShowValuesProvider } from './ShowValuesContext'
export default compose(withI18n())(
export default compose(withNamespaces())(
class Algorithm extends React.Component {
render() {
let { rule, showValues } = this.props

View File

@ -1,9 +1,9 @@
import React, { Component } from 'react'
import { Trans, withI18n } from 'react-i18next'
import { Trans, withNamespaces } from 'react-i18next'
import possiblesDestinataires from 'Règles/ressources/destinataires/destinataires.yaml'
import './Destinataire.css'
export default withI18n()(
export default withNamespaces()(
class Rule extends Component {
render() {
let { destinataire } = this.props,

View File

@ -2,7 +2,7 @@ import { setExample } from 'Actions/actions'
import classNames from 'classnames'
import { compose } from 'ramda'
import React, { Component } from 'react'
import { Trans, withI18n } from 'react-i18next'
import { Trans, withNamespaces } from 'react-i18next'
import { connect } from 'react-redux'
import { capitalise0 } from '../../utils'
import './Examples.css'
@ -20,7 +20,7 @@ export default compose(
)
})
),
withI18n()
withNamespaces()
)(
class Examples extends Component {
render() {

View File

@ -1,11 +1,11 @@
import { groupBy, toPairs } from 'ramda'
import React from 'react'
import { Trans, withI18n } from 'react-i18next'
import { Trans, withNamespaces } from 'react-i18next'
import references from 'Règles/ressources/références/références.yaml'
import { capitalise0 } from '../../utils'
import './References.css'
export default withI18n()(
export default withNamespaces()(
class References extends React.Component {
state = {
showComplementary: false

View File

@ -10,7 +10,7 @@ import {
import { compose, isEmpty } from 'ramda'
import React, { Component, Suspense } from 'react'
import Helmet from 'react-helmet'
import { Trans, withI18n } from 'react-i18next'
import { Trans, withNamespaces } from 'react-i18next'
import { connect } from 'react-redux'
import { Link } from 'react-router-dom'
import { reduxForm } from 'redux-form'
@ -40,7 +40,7 @@ export default compose(
analysedExample: exampleAnalysisSelector(state, props)
})),
AttachDictionary(knownMecanisms),
withI18n(),
withNamespaces(),
withLanguage
)(
class Rule extends Component {

View File

@ -1,8 +1,8 @@
import React, { Component } from 'react'
import { withI18n } from 'react-i18next'
import { withNamespaces } from 'react-i18next'
export default function withLanguage(WrappedComponent) {
return withI18n()(
return withNamespaces()(
class WithLanguage extends Component {
static displayName = `withLanguage(${Component.displayName ||
Component.name})`

View File

@ -2,14 +2,14 @@ import LangSwitcher from 'Components/LangSwitcher'
import React, { Component } from 'react'
import { withRouter } from 'react-router'
import { Link } from 'react-router-dom'
import { withI18n } from 'react-i18next'
import { withNamespaces } from 'react-i18next'
import Logo from '../images/logo/logo-simulateur.svg'
import './Header.css'
import { compose } from 'ramda';
export const Header = compose(
withRouter,
withI18n()
withNamespaces()
)(
class Header extends Component {
state = {

View File

@ -1,11 +1,11 @@
import LangSwitcher from 'Components/LangSwitcher'
import React, { Component } from 'react'
import emoji from 'react-easy-emoji'
import { Trans, withI18n } from 'react-i18next'
import { Trans, withNamespaces } from 'react-i18next'
import screenfull from 'screenfull'
import { isIE } from '../../../utils'
export default withI18n()(
export default withNamespaces()(
class IframeFooter extends Component {
componentDidMount() {
screenfull.enabled && screenfull.onchange(() => this.forceUpdate())

View File

@ -3,7 +3,7 @@ import { defaultTracker } from 'Components/utils/withTracker'
import createRavenMiddleware from 'raven-for-redux'
import Raven from 'raven-js'
import React, { Component } from 'react'
import { withI18n } from 'react-i18next'
import { withNamespaces } from 'react-i18next'
import { Route, Switch } from 'react-router-dom'
import 'Ui/index.css'
import Provider from '../../Provider'
@ -68,7 +68,7 @@ class InFranceRoute extends Component {
}
}
let RouterSwitch = withI18n()(() => {
let RouterSwitch = withNamespaces()(() => {
const paths = sitePaths()
return (
<Switch>

View File

@ -7,7 +7,7 @@ import urssafSvg from 'Images/urssaf.svg'
import { compose } from 'ramda'
import React from 'react'
import Helmet from 'react-helmet'
import { Trans, withI18n } from 'react-i18next'
import { Trans, withNamespaces } from 'react-i18next'
import { withRouter } from 'react-router'
import i18n from '../../../../i18n'
import { feedbackBlacklist } from '../../config'
@ -86,5 +86,5 @@ const Footer = ({ colours: { colour } }) => {
export default compose(
withRouter,
withColours,
withI18n()
withNamespaces()
)(Footer)

View File

@ -2,7 +2,7 @@
import { React, T } from 'Components'
import { compose } from 'ramda'
import emoji from 'react-easy-emoji'
import { withI18n } from 'react-i18next'
import { withNamespaces } from 'react-i18next'
import { connect } from 'react-redux'
import { NavLink, withRouter } from 'react-router-dom'
import selectors from 'Selectors/progressSelectors'
@ -241,7 +241,7 @@ const StepsHeader = ({
export default compose(
withRouter,
withI18n(),
withNamespaces(),
connect(
state => ({
...selectors(state),

View File

@ -3,7 +3,7 @@
import { React, T } from 'Components'
import withTracker from 'Components/utils/withTracker'
import { compose } from 'ramda'
import { withI18n } from 'react-i18next'
import { withNamespaces } from 'react-i18next'
import { connect } from 'react-redux'
import { NavLink, withRouter } from 'react-router-dom'
import selectors from 'Selectors/progressSelectors'
@ -87,5 +87,5 @@ export default compose(
selectors,
{}
),
withI18n()
withNamespaces()
)(StepsHeader)

View File

@ -2,7 +2,7 @@
import { React, T } from 'Components'
import { ScrollToTop } from 'Components/utils/Scroll'
import { compose } from 'ramda'
import { withI18n } from 'react-i18next'
import { withNamespaces } from 'react-i18next'
import { connect } from 'react-redux'
import { Link } from 'react-router-dom'
import Animate from 'Ui/animate'
@ -105,5 +105,5 @@ export default compose(
connect(state => ({
companyStatusChoice: state.inFranceApp.companyStatusChoice
})),
withI18n()
withNamespaces()
)(AfterRegistration)

View File

@ -8,7 +8,7 @@ import { React, T } from 'Components'
import Scroll from 'Components/utils/Scroll'
import { compose } from 'ramda'
import Helmet from 'react-helmet'
import { withI18n } from 'react-i18next'
import { withNamespaces } from 'react-i18next'
import { connect } from 'react-redux'
import { Link } from 'react-router-dom'
import * as Animate from 'Ui/animate'
@ -427,7 +427,7 @@ const CreateCompany = ({
)
}
export default compose(
withI18n(),
withNamespaces(),
connect(
state => ({
companyCreationChecklist: state.inFranceApp.companyCreationChecklist,

View File

@ -3,7 +3,7 @@ import { defineDirectorStatus } from 'Actions/companyStatusActions'
import { React, T } from 'Components'
import { compose } from 'ramda'
import Helmet from 'react-helmet'
import { withI18n } from 'react-i18next'
import { withNamespaces } from 'react-i18next'
import { connect } from 'react-redux'
import CompanyStatusNavigation from './CompanyStatusNavigation'
import type { DirectorStatus } from 'Types/companyTypes'
@ -76,7 +76,7 @@ const DefineDirectorStatus = ({ defineDirectorStatus, t }: Props) => (
)
export default compose(
withI18n(),
withNamespaces(),
connect(
null,
{ defineDirectorStatus }

View File

@ -3,7 +3,7 @@ import { saveExistingCompanyDetails } from 'Actions/existingCompanyActions'
import { React, T } from 'Components'
import { compose } from 'ramda'
import Helmet from 'react-helmet'
import { withI18n } from 'react-i18next'
import { withNamespaces } from 'react-i18next'
import { connect } from 'react-redux'
import { withRouter } from 'react-router'
import { Link } from 'react-router-dom'
@ -121,5 +121,5 @@ export default compose(
onCompanyDetailsConfirmation: saveExistingCompanyDetails
}
),
withI18n()
withNamespaces()
)(Search)

View File

@ -3,7 +3,7 @@ import { resetCompanyStatusChoice } from 'Actions/companyStatusActions'
import { React, T } from 'Components'
import { compose, toPairs } from 'ramda'
import Helmet from 'react-helmet'
import { withI18n } from 'react-i18next'
import { withNamespaces } from 'react-i18next'
import { connect } from 'react-redux'
import { Link, Redirect } from 'react-router-dom'
import { nextQuestionUrlSelector } from 'Selectors/companyStatusSelectors'
@ -96,5 +96,5 @@ export default compose(
}),
{ resetCompanyStatusChoice }
),
withI18n()
withNamespaces()
)(CreateMyCompany)

View File

@ -3,7 +3,7 @@ import { chooseCompanyLiability } from 'Actions/companyStatusActions'
import { React, T } from 'Components'
import { compose } from 'ramda'
import Helmet from 'react-helmet'
import { withI18n } from 'react-i18next'
import { withNamespaces } from 'react-i18next'
import { connect } from 'react-redux'
import CompanyStatusNavigation from './CompanyStatusNavigation'
import type { CompanyLiability } from 'Types/companyTypes'
@ -116,7 +116,7 @@ const Liability = ({
)
export default compose(
withI18n(),
withNamespaces(),
connect(
state => ({
multipleAssociates:

View File

@ -3,7 +3,7 @@ import { companyIsMicroenterprise } from 'Actions/companyStatusActions'
import { React, T } from 'Components'
import { compose } from 'ramda'
import Helmet from 'react-helmet'
import { withI18n } from 'react-i18next'
import { withNamespaces } from 'react-i18next'
import { connect } from 'react-redux'
import CompanyStatusNavigation from './CompanyStatusNavigation'
@ -102,7 +102,7 @@ const Microenterprise = ({ companyIsMicroenterprise, t }: Props) => (
)
export default compose(
withI18n(),
withNamespaces(),
connect(
null,
{ companyIsMicroenterprise }

View File

@ -3,7 +3,7 @@ import { directorIsInAMinority } from 'Actions/companyStatusActions'
import { React, T } from 'Components'
import { compose } from 'ramda'
import Helmet from 'react-helmet'
import { withI18n } from 'react-i18next'
import { withNamespaces } from 'react-i18next'
import { connect } from 'react-redux'
import CompanyStatusNavigation from './CompanyStatusNavigation'
import type { TFunction } from 'react-i18next'
@ -72,7 +72,7 @@ const MinorityDirector = ({ directorIsInAMinority, t }: Props) => (
)
export default compose(
withI18n(),
withNamespaces(),
connect(
null,
{ directorIsInAMinority }

View File

@ -4,7 +4,7 @@ import { companyHasMultipleAssociates } from 'Actions/companyStatusActions'
import { React, T } from 'Components'
import { compose } from 'ramda'
import Helmet from 'react-helmet'
import { withI18n } from 'react-i18next'
import { withNamespaces } from 'react-i18next'
import { connect } from 'react-redux'
import CompanyStatusNavigation from './CompanyStatusNavigation'
import type { TFunction } from 'react-i18next'
@ -72,7 +72,7 @@ const NumberOfAssociates = ({ companyHasMultipleAssociates, t }: Props) => (
)
export default compose(
withI18n(),
withNamespaces(),
connect(
null,
{ companyHasMultipleAssociates }

View File

@ -5,7 +5,7 @@ import { connect } from 'react-redux'
import { filter } from 'ramda'
import { Link } from 'react-router-dom'
import { possibleStatusSelector } from 'Selectors/companyStatusSelectors'
import { withI18n } from 'react-i18next'
import { withNamespaces } from 'react-i18next'
import StatusDescription from './StatusDescription'
import type { RouterHistory } from 'react-router'
import { compose } from 'ramda'
@ -25,7 +25,7 @@ type Props = {
t: TFunction
}
const StatusButton = withI18n()(
const StatusButton = withNamespaces()(
({ status, t }: { status: LegalStatus, t: TFunction }) => (
<div style={{textAlign: 'right'}}>
@ -131,7 +131,7 @@ const SetMainStatus = ({
}
export default compose(
withI18n(),
withNamespaces(),
withLanguage,
connect(
state => ({ possibleStatus: possibleStatusSelector(state) }),

View File

@ -3,7 +3,7 @@
import { React, T } from 'Components'
import withLanguage from 'Components/utils/withLanguage'
import { toPairs } from 'ramda'
import { withI18n } from 'react-i18next'
import { withNamespaces } from 'react-i18next'
import { connect } from 'react-redux'
import { Link, Redirect } from 'react-router-dom'
import sitePaths from '../../sitePaths'
@ -38,7 +38,7 @@ const LocaleDate = withLanguage(
}).format(date)
)
export const CompanyDetails = withI18n()(
export const CompanyDetails = withNamespaces()(
({ t, ...data }: { t: TFunction, [string]: string }) => {
const localizedCompanyDataSelection = companyDataSelection(t)
return (

View File

@ -1,5 +1,5 @@
import React from 'react'
import { withI18n } from 'react-i18next'
import { withNamespaces } from 'react-i18next'
import { connect } from 'react-redux'
import { Redirect, Route, Switch } from 'react-router'
import * as Animate from 'Ui/animate'
@ -104,4 +104,4 @@ const CreateMyCompany = ({
export default connect(state => ({
companyStatusChoice: state.inFranceApp.companyStatusChoice,
existingCompany: state.inFranceApp.existingCompanyDetails
}))(withI18n()(CreateMyCompany))
}))(withNamespaces()(CreateMyCompany))

View File

@ -6,7 +6,7 @@ import {
import { React, T } from 'Components'
import { compose } from 'ramda'
import Helmet from 'react-helmet'
import { withI18n } from 'react-i18next'
import { withNamespaces } from 'react-i18next'
import { connect } from 'react-redux'
import { Link } from 'react-router-dom'
import Animate from 'Ui/animate'
@ -208,7 +208,7 @@ const HiringProcess = ({
)
export default compose(
withI18n(),
withNamespaces(),
connect(
state => ({ hiringChecklist: state.inFranceApp.hiringChecklist }),
{

View File

@ -5,7 +5,7 @@ import marianneSvg from 'Images/marianne.svg'
import urssafSvg from 'Images/urssaf.svg'
import React from 'react'
import emoji from 'react-easy-emoji'
import { Trans, withI18n } from 'react-i18next'
import { Trans, withNamespaces } from 'react-i18next'
import { Link } from 'react-router-dom'
import companySvg from '../images/company.svg'
import estimateSvg from '../images/estimate.svg'
@ -14,7 +14,7 @@ import Footer from '../layout/Footer/Footer'
import sitePaths from '../sitePaths'
import './Landing.css'
export default withI18n()(
export default withNamespaces()(
withColours(({ colours: { colour } }) => (
<>
<header className="landing__header">

View File

@ -6,7 +6,7 @@ import { ScrollToTop } from 'Components/utils/Scroll'
import withLanguage from 'Components/utils/withLanguage'
import { compose } from 'ramda'
import Helmet from 'react-helmet'
import { withI18n } from 'react-i18next'
import { withNamespaces } from 'react-i18next'
import * as Animate from 'Ui/animate'
import type { Match, Location } from 'react-router'
import type { TFunction } from 'react-i18next'
@ -89,6 +89,6 @@ class SocialSecurity extends Component<Props, {}> {
}
export default compose(
withI18n(),
withNamespaces(),
withLanguage
)(SocialSecurity)