diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 6151f29..403462e 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -14,8 +14,9 @@ RUN npm run build:api RUN npm run install:api ARG REACT_APP_MODE +ARG REACT_APP_VERSION -RUN export REACT_APP_MODE=$REACT_APP_MODE && PUBLIC_URL="/" && npm run build +RUN export REACT_APP_MODE=$REACT_APP_MODE && export REACT_APP_VERSION=$REACT_APP_VERSION && PUBLIC_URL="/" && npm run build FROM httpd:2.4.57 diff --git a/frontend/app/src/domains/commons/components/Footer.css b/frontend/app/src/domains/commons/components/Footer.css index 5be64e5..4d9aca6 100644 --- a/frontend/app/src/domains/commons/components/Footer.css +++ b/frontend/app/src/domains/commons/components/Footer.css @@ -16,7 +16,7 @@ } .footer-item { - margin-bottom: 1rem; + margin: 1rem; } .footer-contact { diff --git a/frontend/app/src/domains/commons/components/Footer.tsx b/frontend/app/src/domains/commons/components/Footer.tsx index 47383ec..a3964ef 100644 --- a/frontend/app/src/domains/commons/components/Footer.tsx +++ b/frontend/app/src/domains/commons/components/Footer.tsx @@ -26,6 +26,11 @@ export default function Footer() { return <> } + function displayVersion() { + const versionLabel = process.env?.REACT_APP_VERSION || ' indéfinie' + return `version ${versionLabel}` + } + return <>
@@ -56,7 +61,7 @@ export default function Footer() {  sur  www.flaticon.com
-
{process?.env?.REACT_APP_MODE || 'version indéfinie'}
+
{displayVersion()}
{displayGeneralTermsAndConditions()}