Move App and Provider in components

pull/2529/head
Jérémy Rialland 2023-02-27 19:45:32 +01:00 committed by Johan Girod
parent 8bc27efa43
commit e7b7c47146
5 changed files with 31 additions and 31 deletions

View File

@ -19,26 +19,26 @@ import {
import { useIsEmbedded } from '@/components/utils/useIsEmbedded'
import { Container, Spacing } from '@/design-system/layout'
import { useAxeCoreAnalysis } from '../hooks/useAxeCoreAnalysis'
import { useGetFullURL } from '../hooks/useGetFullURL'
import { useSaveAndRestoreScrollPosition } from '../hooks/useSaveAndRestoreScrollPosition'
import Accessibilité from '../pages/Accessibilité'
import Budget from '../pages/Budget/Budget'
import Créer from '../pages/Creer'
import IntegrationTest from '../pages/Dev/IntegrationTest'
import Documentation from '../pages/Documentation'
import Iframes from '../pages/Iframes'
import Landing from '../pages/Landing/Landing'
import Nouveautés from '../pages/Nouveautes/Nouveautes'
import Offline from '../pages/Offline'
import Plan from '../pages/Plan'
import Simulateurs from '../pages/Simulateurs'
import Stats from '../pages/Stats/LazyStats'
import Assistants from '../pages/assistants'
import Gérer from '../pages/gerer'
import Integration from '../pages/integration/index'
import { useSitePaths } from '../sitePaths'
import Provider, { ProviderProps } from './Provider'
import { useAxeCoreAnalysis } from './hooks/useAxeCoreAnalysis'
import { useGetFullURL } from './hooks/useGetFullURL'
import { useSaveAndRestoreScrollPosition } from './hooks/useSaveAndRestoreScrollPosition'
import Accessibilité from './pages/Accessibilité'
import Budget from './pages/Budget/Budget'
import Créer from './pages/Creer'
import IntegrationTest from './pages/Dev/IntegrationTest'
import Documentation from './pages/Documentation'
import Iframes from './pages/Iframes'
import Landing from './pages/Landing/Landing'
import Nouveautés from './pages/Nouveautes/Nouveautes'
import Offline from './pages/Offline'
import Plan from './pages/Plan'
import Simulateurs from './pages/Simulateurs'
import Stats from './pages/Stats/LazyStats'
import Assistants from './pages/assistants'
import Gérer from './pages/gerer'
import Integration from './pages/integration/index'
import { useSitePaths } from './sitePaths'
type RootProps = {
basename: ProviderProps['basename']

View File

@ -18,14 +18,14 @@ import { Link } from '@/design-system/typography/link'
import { Body, Intro } from '@/design-system/typography/paragraphs'
import { useIframeResizer } from '@/hooks/useIframeResizer'
import { TrackingContext } from './components/ATInternetTracking'
import { createTracker } from './components/ATInternetTracking/Tracker'
import { ServiceWorker } from './components/ServiceWorker'
import { DarkModeProvider } from './contexts/DarkModeContext'
import { Message } from './design-system'
import * as safeLocalStorage from './storage/safeLocalStorage'
import { store } from './store/store'
import { inIframe } from './utils'
import { DarkModeProvider } from '../contexts/DarkModeContext'
import { Message } from '../design-system'
import * as safeLocalStorage from '../storage/safeLocalStorage'
import { store } from '../store/store'
import { inIframe } from '../utils'
import { TrackingContext } from './ATInternetTracking'
import { createTracker } from './ATInternetTracking/Tracker'
import { ServiceWorker } from './ServiceWorker'
type SiteName = 'mon-entreprise' | 'infrance' | 'publicodes'

View File

@ -10,9 +10,9 @@ import { H1, H2, H3, H4, H5, H6 } from '@/design-system/typography/heading'
import { Link } from '@/design-system/typography/link'
import { Li, Ol, Ul } from '@/design-system/typography/list'
import { Body } from '@/design-system/typography/paragraphs'
import { isIterable } from '@/utils'
import { SiteNameContext } from '../../Provider'
import { isIterable } from '../../utils'
import { SiteNameContext } from '../Provider'
const internalURLs = {
'mon-entreprise.urssaf.fr': 'mon-entreprise',

View File

@ -2,7 +2,7 @@ import { I18nProvider } from '@react-aria/i18n'
import { withProfiler } from '@sentry/react'
import { createRoot } from 'react-dom/client'
import App from '../App'
import App from '../components/App'
import i18next from '../locales/i18n'
import ruleTranslations from '../locales/rules-en.yaml'
import translateRules from '../locales/translateRules'

View File

@ -2,7 +2,7 @@ import { I18nProvider } from '@react-aria/i18n'
import { withProfiler } from '@sentry/react'
import { createRoot } from 'react-dom/client'
import App from '../App'
import App from '../components/App'
import i18next from '../locales/i18n'
import '../api/sentry'