From 7d71bab6a2eaf00bf1365f2f99a3ebf90e456b00 Mon Sep 17 00:00:00 2001 From: Guillaume Grossetie Date: Thu, 7 Nov 2024 17:30:29 +0100 Subject: [PATCH] feat: affiche une barre de statistique dans le pied de page --- ...ditorArticleStats.jsx => ArticleStats.jsx} | 4 +-- .../components/Write/ArticleEditorMenu.jsx | 11 +++--- front/src/components/Write/Stats.jsx | 29 --------------- front/src/components/Write/WorkingVersion.jsx | 2 -- front/src/components/Write/Write.jsx | 3 ++ .../providers/monaco/TextEditor.module.scss | 2 +- ...s.module.scss => articleStats.module.scss} | 6 +++- .../collaborative/CollaborativeEditor.jsx | 4 +-- .../collaborative/CollaborativeTextEditor.jsx | 35 ++++++------------- .../CollaborativeTextEditor.module.scss | 1 + 10 files changed, 28 insertions(+), 69 deletions(-) rename front/src/components/{collaborative/CollaborativeEditorArticleStats.jsx => ArticleStats.jsx} (76%) delete mode 100644 front/src/components/Write/Stats.jsx rename front/src/components/{collaborative/CollaborativeEditorArticleStats.module.scss => articleStats.module.scss} (60%) diff --git a/front/src/components/collaborative/CollaborativeEditorArticleStats.jsx b/front/src/components/ArticleStats.jsx similarity index 76% rename from front/src/components/collaborative/CollaborativeEditorArticleStats.jsx rename to front/src/components/ArticleStats.jsx index d3a756a6e..1122d3776 100644 --- a/front/src/components/collaborative/CollaborativeEditorArticleStats.jsx +++ b/front/src/components/ArticleStats.jsx @@ -1,9 +1,9 @@ import React from 'react' import { shallowEqual, useSelector } from 'react-redux' -import styles from './CollaborativeEditorArticleStats.module.scss' +import styles from './articleStats.module.scss' -export default function CollaborativeEditorArticleStats () { +export default function ArticleStats () { const articleStats = useSelector(state => state.articleStats, shallowEqual) return (