From 0ace7de603d25f4953831858612cb6e9d5c5b605 Mon Sep 17 00:00:00 2001 From: maxgfr <25312957+maxgfr@users.noreply.github.com> Date: Mon, 14 Aug 2023 17:17:55 +0200 Subject: [PATCH] fix: font --- .../src/components/collapsible/index.js | 2 +- .../src/components/documents/Actions.js | 2 +- .../src/components/fiches-sp/addFicheForm.js | 2 +- .../src/components/fiches-sp/selectActions.js | 2 +- .../src/components/glossary/TermForm.js | 2 +- .../src/components/home/DuplicateItems.tsx | 5 +-- .../home/InvisibleLinkedDocument.tsx | 5 +-- .../src/components/home/UnThemedContent.tsx | 7 ++-- .../src/components/layout/UserMenu.tsx | 2 +- .../src/components/layout/password.layout.js | 4 +-- .../frontend/src/components/login/index.js | 36 +++++++++++-------- .../components/prequalified/Prequalified.tsx | 2 +- .../frontend/src/components/themes/Form.js | 2 +- targets/frontend/src/components/user/List.js | 2 +- .../src/components/user/PasswordForm.js | 2 +- .../frontend/src/components/user/UserForm.js | 2 +- .../frontend/src/pages/change_password.tsx | 4 +-- targets/frontend/src/pages/fichiers.js | 2 +- .../src/pages/glossary/edit/[[...id]].js | 2 +- targets/frontend/src/pages/index.tsx | 4 +-- targets/frontend/src/pages/login.js | 4 +-- targets/frontend/src/pages/reset_password.js | 8 +++-- .../frontend/src/pages/themes/edit/[id].js | 2 +- targets/frontend/src/pages/unthemed.js | 4 +-- targets/frontend/src/theme.ts | 2 +- 25 files changed, 59 insertions(+), 52 deletions(-) diff --git a/targets/frontend/src/components/collapsible/index.js b/targets/frontend/src/components/collapsible/index.js index ee5842d35..21146daa1 100644 --- a/targets/frontend/src/components/collapsible/index.js +++ b/targets/frontend/src/components/collapsible/index.js @@ -19,7 +19,7 @@ export function Collapsible({ label, children, id, ...props }) { aria-controls={id} aria-expanded={isVisible} size="small" - variant="link" + variant="text" onClick={() => setVisible(!isVisible)} > diff --git a/targets/frontend/src/components/documents/Actions.js b/targets/frontend/src/components/documents/Actions.js index 31d34603f..1e80bde75 100644 --- a/targets/frontend/src/components/documents/Actions.js +++ b/targets/frontend/src/components/documents/Actions.js @@ -39,7 +39,7 @@ export function DocumentsListActions({ onUpdatePublication }) { - diff --git a/targets/frontend/src/components/fiches-sp/addFicheForm.js b/targets/frontend/src/components/fiches-sp/addFicheForm.js index 56584fc97..ad6e31e27 100644 --- a/targets/frontend/src/components/fiches-sp/addFicheForm.js +++ b/targets/frontend/src/components/fiches-sp/addFicheForm.js @@ -46,7 +46,7 @@ export function AddFicheSpForm({ onAdd }) { } return (
- + Ajouter des fiches

{`Renseignez l’identifiant ${ diff --git a/targets/frontend/src/components/fiches-sp/selectActions.js b/targets/frontend/src/components/fiches-sp/selectActions.js index 3594774b5..03e1faa6b 100644 --- a/targets/frontend/src/components/fiches-sp/selectActions.js +++ b/targets/frontend/src/components/fiches-sp/selectActions.js @@ -35,7 +35,7 @@ export function Actions({ onDelete }) { - diff --git a/targets/frontend/src/components/glossary/TermForm.js b/targets/frontend/src/components/glossary/TermForm.js index ae6e5855b..759e9e515 100644 --- a/targets/frontend/src/components/glossary/TermForm.js +++ b/targets/frontend/src/components/glossary/TermForm.js @@ -11,7 +11,7 @@ import { Lister } from "src/components/forms/Lister"; import { MarkdownLink } from "src/components/MarkdownLink"; import { Box, - Input as Field, + TextField as Field, InputLabel as Label, Textarea, } from "@mui/material"; diff --git a/targets/frontend/src/components/home/DuplicateItems.tsx b/targets/frontend/src/components/home/DuplicateItems.tsx index 45359f763..b6c478b3c 100644 --- a/targets/frontend/src/components/home/DuplicateItems.tsx +++ b/targets/frontend/src/components/home/DuplicateItems.tsx @@ -6,6 +6,7 @@ import { RELATIONS } from "src/lib/relations"; import { Card, CardContent, Typography } from "@mui/material"; import { useQuery } from "urql"; import { FixedSnackBar } from "../utils/SnackBar"; +import { theme } from "src/theme"; export const getDuplicateQuery = `query duplicate($sources: [String!], $relationTypes: [String!]) { documents( @@ -109,11 +110,11 @@ export function DuplicateContent(): JSX.Element | null { {duplicates.length} diff --git a/targets/frontend/src/components/home/InvisibleLinkedDocument.tsx b/targets/frontend/src/components/home/InvisibleLinkedDocument.tsx index 44d50d439..6f531bf3b 100644 --- a/targets/frontend/src/components/home/InvisibleLinkedDocument.tsx +++ b/targets/frontend/src/components/home/InvisibleLinkedDocument.tsx @@ -5,6 +5,7 @@ import { useQuery } from "urql"; import { Card, CardContent, Typography } from "@mui/material"; import { FixedSnackBar } from "../utils/SnackBar"; import React from "react"; +import { theme } from "src/theme"; export const getGhostDocumentQuery = gql` query ghostDocuments { @@ -84,11 +85,11 @@ export function GhostLinkedDocuments(): JSX.Element | null { {data?.relations.length} diff --git a/targets/frontend/src/components/home/UnThemedContent.tsx b/targets/frontend/src/components/home/UnThemedContent.tsx index 0e711962e..35c97484b 100644 --- a/targets/frontend/src/components/home/UnThemedContent.tsx +++ b/targets/frontend/src/components/home/UnThemedContent.tsx @@ -5,6 +5,7 @@ import { useQuery } from "urql"; import { Card, CardContent, Typography } from "@mui/material"; import { FixedSnackBar } from "../utils/SnackBar"; import React from "react"; +import { theme } from "src/theme"; export const getUnthemedContentQuery = ` query getUnthemed($themeSources: [String!]!) { @@ -67,17 +68,17 @@ export function UnThemedContent() { {data.documents.length} - + Contenus non thémés diff --git a/targets/frontend/src/components/layout/UserMenu.tsx b/targets/frontend/src/components/layout/UserMenu.tsx index a0ea98529..3d52b51b2 100644 --- a/targets/frontend/src/components/layout/UserMenu.tsx +++ b/targets/frontend/src/components/layout/UserMenu.tsx @@ -27,11 +27,11 @@ export function UserMenu() { > {user?.name} diff --git a/targets/frontend/src/components/layout/password.layout.js b/targets/frontend/src/components/layout/password.layout.js index b9586db21..9c4f3d623 100644 --- a/targets/frontend/src/components/layout/password.layout.js +++ b/targets/frontend/src/components/layout/password.layout.js @@ -19,8 +19,8 @@ export function PasswordLayout({ children, title }) { px="xxsmall" sx={{ flex: 1, justifyContent: "center", display: "flex" }} > - - {title} + + {title} {children} diff --git a/targets/frontend/src/components/login/index.js b/targets/frontend/src/components/login/index.js index 363498ac7..417d51539 100644 --- a/targets/frontend/src/components/login/index.js +++ b/targets/frontend/src/components/login/index.js @@ -1,9 +1,16 @@ import PropTypes from "prop-types"; import { useForm } from "react-hook-form"; -import { Box, Card, Input as Field, Typography, Alert } from "@mui/material"; +import { + Box, + Card, + TextField as Field, + Typography, + Alert, +} from "@mui/material"; import { Button } from "../button"; import { Stack } from "../layout/Stack"; +import { theme } from "../../theme"; const LoginForm = ({ authenticate, resetPassword, onSuccess }) => { const { @@ -30,20 +37,15 @@ const LoginForm = ({ authenticate, resetPassword, onSuccess }) => { } }; return ( - - + + - Authentification + + Authentification + { {errors.email?.message} )} { {errors.password && ( {errors.password?.message} )} - - diff --git a/targets/frontend/src/components/user/PasswordForm.js b/targets/frontend/src/components/user/PasswordForm.js index ace54fd51..9cd5eaa9d 100644 --- a/targets/frontend/src/components/user/PasswordForm.js +++ b/targets/frontend/src/components/user/PasswordForm.js @@ -3,7 +3,7 @@ import PropTypes from "prop-types"; import { useForm } from "react-hook-form"; import { Button } from "src/components/button"; import { useUser } from "src/hooks/useUser"; -import { Input as Field } from "@mui/material"; +import { TextField as Field } from "@mui/material"; import { passwordValidation } from "../../lib/auth/auth.const"; import { FormErrorMessage } from "../forms/ErrorMessage"; diff --git a/targets/frontend/src/components/user/UserForm.js b/targets/frontend/src/components/user/UserForm.js index b1fbd8fc2..ebb0d618a 100644 --- a/targets/frontend/src/components/user/UserForm.js +++ b/targets/frontend/src/components/user/UserForm.js @@ -2,7 +2,7 @@ import Link from "next/link"; import PropTypes from "prop-types"; import { useForm } from "react-hook-form"; import { Button } from "src/components/button"; -import { Input as Field, Label, Select } from "@mui/material"; +import { TextField as Field, Label, Select } from "@mui/material"; import { useQuery } from "urql"; import { FormErrorMessage } from "../forms/ErrorMessage"; diff --git a/targets/frontend/src/pages/change_password.tsx b/targets/frontend/src/pages/change_password.tsx index f7c1d800d..d00f5203f 100644 --- a/targets/frontend/src/pages/change_password.tsx +++ b/targets/frontend/src/pages/change_password.tsx @@ -33,12 +33,12 @@ export default function ChangePasswordPage() { return ( {activate ? ( - + Votre compte a été activé. Suivez le lien fourni pour vous connecter. ) : ( - + Votre mot de passe a été ré-initialisé, suivez le lien fourni pour vous connecter. diff --git a/targets/frontend/src/pages/fichiers.js b/targets/frontend/src/pages/fichiers.js index 70b5d911d..229bda2c6 100644 --- a/targets/frontend/src/pages/fichiers.js +++ b/targets/frontend/src/pages/fichiers.js @@ -20,7 +20,7 @@ import useSWR, { mutate } from "swr"; import { Box, Card, - Input as Field, + TextField as Field, InputLabel as Label, Alert as Message, Select, diff --git a/targets/frontend/src/pages/glossary/edit/[[...id]].js b/targets/frontend/src/pages/glossary/edit/[[...id]].js index 281269210..0a50209e9 100644 --- a/targets/frontend/src/pages/glossary/edit/[[...id]].js +++ b/targets/frontend/src/pages/glossary/edit/[[...id]].js @@ -75,7 +75,7 @@ export function EditTermPage() { + diff --git a/targets/frontend/src/pages/themes/edit/[id].js b/targets/frontend/src/pages/themes/edit/[id].js index 26f68fc96..fb893bc93 100644 --- a/targets/frontend/src/pages/themes/edit/[id].js +++ b/targets/frontend/src/pages/themes/edit/[id].js @@ -149,7 +149,7 @@ export function EditThemePage() {