From f02c9bfe2b1598cb4d95ed9a3c241ad5f031dcd1 Mon Sep 17 00:00:00 2001 From: Imen Chermiti Date: Tue, 5 Dec 2023 00:52:16 +0100 Subject: [PATCH 1/3] feat: add power BI iframe --- package-lock.json | 2 +- .../src/components/HomePage/sections.js | 65 +++++-------------- 2 files changed, 17 insertions(+), 50 deletions(-) diff --git a/package-lock.json b/package-lock.json index d6ab60ff..cae9bb5c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "fce", - "version": "27.49.0", + "version": "27.89.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/src/client/src/components/HomePage/sections.js b/src/client/src/components/HomePage/sections.js index 205d82b1..32c21202 100644 --- a/src/client/src/components/HomePage/sections.js +++ b/src/client/src/components/HomePage/sections.js @@ -2,8 +2,6 @@ import PropTypes from "prop-types"; import React from "react"; import { Link } from "react-router-dom"; -import { NounExcelIcon, NounPeopleIcon, NounPlatformIcon } from "./Icons"; - const LoginLink = () => (
(
); -export const IconItems = ({ users, isLoading = false }) => { - // I can't use anonymous function without a display name for icon. - // That's make a lint error - const items = [ - { - firstParagraph: "22 millions d’entreprises", - icon: function renderIcon(height) { - return ; - }, - secondParagraph: "37 millions d’établissements", - }, - { - firstParagraph: "59 millions de fiches​", - icon: function renderIcon(height) { - return ; - }, - secondParagraph: "200 Go de données​", - }, - { - firstParagraph: `+ ${users} utilisateurs`, - icon: function renderIcon(height) { - return ; - }, - secondParagraph: "dans les Dreets et Ddets(PP)", - }, - ]; - +export const IconItems = () => { return (
-

FCE en chiffres

+ {/*

FCE en chiffres

*/}
- {items.map((item, index) => { - return ( -
-
-
{item.icon(40)}
- {isLoading && index === 2 ? ( -
-
-
-
-
- ) : ( -

{item.firstParagraph}

- )} -

{item.secondParagraph}

-
-
- ); - })} +