Skip to content

Commit

Permalink
fix(notice): move nice to connexion page
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihoub2 committed May 29, 2024
1 parent f7dee06 commit dbd3ad1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/layout/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import {
Tool,
ToolItem,
ToolItemGroup,
Notice,
} from '@dataesr/react-dsfr';
import useAuth from '../hooks/useAuth';
import useDebounce from '../hooks/useDebounce';
Expand Down Expand Up @@ -83,7 +82,6 @@ export default function Header() {

return (
<HeaderWrapper>
<Notice title="L'application rencontre actuellement des problèmes techniques. Nous travaillons activement pour résoudre le souci au plus vite. Merci pour votre patience" className="bugNotice" />
<HeaderBody>
<Logo splitCharacter={9}>
Ministère de l'enseignement supérieur et de la recherche
Expand Down
8 changes: 7 additions & 1 deletion src/pages/se-connecter.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useState } from 'react';
import { Link as RouterLink, useNavigate } from 'react-router-dom';
import { Container, Row, Col, TextInput, Text, Link, Title, ButtonGroup, Alert } from '@dataesr/react-dsfr';
import { Container, Row, Col, TextInput, Text, Link, Title, ButtonGroup, Alert, Notice } from '@dataesr/react-dsfr';

import Button from '../components/button';
import useAuth from '../hooks/useAuth';
Expand Down Expand Up @@ -38,13 +38,19 @@ export default function SignIn() {
<Container spacing="my-6w">
<Container fluid>
<Row justifyContent="center">
<Notice
title="L'application rencontre actuellement des problèmes techniques.
Nous travaillons activement pour résoudre le souci au plus vite. Merci pour votre patience"
className="bugNotice"
/>
<Col n="xs-12 sm-10 md-8 lg-6">
<Container fluid className="fr-background-alt" spacing="px-4w px-md-12w pb-4w pt-6w">
{ (step === 1) && (
<Row justifyContent="center">
<Col n="12">
<Title as="h1" look="h5">Se connecter à Paysage</Title>
</Col>

<Col>
{(error) && <Alert description={error} type="error" />}
<form onSubmit={handleSignIn}>
Expand Down

0 comments on commit dbd3ad1

Please sign in to comment.