From f53fd7ff451d86a2c2124015cb088509f9a52b4a Mon Sep 17 00:00:00 2001 From: Maxime Quandalle Date: Sat, 19 Dec 2020 15:08:22 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Corrige=20l'affichage=20de=20la?= =?UTF-8?q?=20doc=20sur=20publi.codes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mon-entreprise/package.json | 1 + publicodes/site/components/App.tsx | 10 ++++++---- publicodes/site/package.json | 1 + 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/mon-entreprise/package.json b/mon-entreprise/package.json index 8e37004c6..a7ccd8fe0 100644 --- a/mon-entreprise/package.json +++ b/mon-entreprise/package.json @@ -8,6 +8,7 @@ "url": "https://github.com/betagouv/mon-entreprise.git", "directory": "mon-entreprise" }, + "private": true, "engines": { "node": ">=12.16.1" }, diff --git a/publicodes/site/components/App.tsx b/publicodes/site/components/App.tsx index 851958c55..e125f9be8 100644 --- a/publicodes/site/components/App.tsx +++ b/publicodes/site/components/App.tsx @@ -1,15 +1,17 @@ -// TODO : load translation only if en +// TODO: This is need to display the documentation UI, because the translations +// for UI components are handled in the mon-entreprise site and not in the +// publicodes-react package. This should be fixed. +import '../../../mon-entreprise/source/locales/i18n' import 'Components/ui/index.css' -import 'iframe-resizer' import { useEffect } from 'react' import { hot } from 'react-hot-loader' import { Route, Switch } from 'react-router-dom' -import Provider from './Provider' import Communauté from '../pages/Communauté' import Documentation from '../pages/Documentation' -import { Header } from './Header' import Landing from '../pages/Landing' +import { Header } from './Header' import LazyStudio from './LazyStudio' +import Provider from './Provider' function Router() { return ( diff --git a/publicodes/site/package.json b/publicodes/site/package.json index c05baba1d..d10b0cb67 100644 --- a/publicodes/site/package.json +++ b/publicodes/site/package.json @@ -4,6 +4,7 @@ "description": "Site web de publicodes", "author": "", "license": "MIT", + "private": true, "scripts": { "prepare": "echo 1", "test": "echo 1"