Skip to content
Snippets Groups Projects
Commit ee43bbeb authored by Bastien DUMONT's avatar Bastien DUMONT :angel:
Browse files

replace titles

parent 354651eb
No related branches found
No related tags found
1 merge request!118feat(ui): use mui components and upgrade to v5
.mailSubject {
.title {
margin: 1rem 0;
}
}
......@@ -2,7 +2,6 @@ import { Button, TextField } from '@mui/material'
import React, { ChangeEvent } from 'react'
import { EditorType } from '../CustomEditor'
import { ContentItems } from '../Newsletter'
import './mailSubject.scss'
interface MailSubjectProps {
onSave: () => Promise<void>
......@@ -24,8 +23,7 @@ const MailSubject: React.FC<MailSubjectProps> = ({
return (
<div className="mailSubject">
<h2>Objet de la newsletter (Optionnel)</h2>
{/* rename to subtitle */}
<p className="title">Objet</p>
<h3>Objet</h3>
<TextField
type="text"
placeholder="Par défaut : [Ecolyo] Votre bilan..."
......
......@@ -5,7 +5,6 @@ import { convertStringToEditorState } from '../../../utils/editorStateManagement
import CustomEditor, { EditorType } from '../CustomEditor'
import ImagePicker from '../ImagePicker/ImagePicker'
import { ContentItems } from '../Newsletter'
import './monthlyInfo.scss'
interface MonthlyInfoProps {
handleChange: (value: string, type: EditorType) => void
......@@ -27,9 +26,9 @@ const MonthlyInfo: React.FC<MonthlyInfoProps> = ({
<div className="monthlyInfo">
<h2>Informations du mois (Optionnel)</h2>
<div>
<p className="title">Image</p>
<h3>Image</h3>
<ImagePicker imageURL={imageURL} handleChange={handleChange} />
<p className="title">Info</p>
<h3>Info</h3>
<CustomEditor
baseState={convertStringToEditorState(info)}
handleChange={handleChange}
......
.monthlyInfo {
margin: 2rem 0;
.title {
margin: 1rem 0;
}
h2 {
margin-bottom: 1rem;
}
}
......@@ -4,7 +4,6 @@ import 'react-draft-wysiwyg/dist/react-draft-wysiwyg.css'
import { convertStringToEditorState } from '../../../utils/editorStateManagement'
import CustomEditor, { EditorType } from '../CustomEditor'
import { ContentItems } from '../Newsletter'
import './monthlyNews.scss'
interface MonthlyNewsProps {
onSave: () => Promise<void>
......@@ -28,7 +27,7 @@ const MonthlyNews: React.FC<MonthlyNewsProps> = ({
return (
<div className="monthlyNews">
<h2>Nouveautés du mois (Optionnel)</h2>
<p className="title">Titre</p>
<h3>Titre</h3>
<TextField
type="text"
placeholder="Par défaut : Les nouveautés du service"
......@@ -36,7 +35,7 @@ const MonthlyNews: React.FC<MonthlyNewsProps> = ({
onChange={handleChangeTitle}
/>
<div>
<p className="title">Contenu</p>
<h3>Contenu</h3>
<div>
<CustomEditor
baseState={convertStringToEditorState(content)}
......
.monthlyNews {
margin: 2rem 0;
.title {
margin: 1rem 0;
}
}
......@@ -4,7 +4,6 @@ import 'react-draft-wysiwyg/dist/react-draft-wysiwyg.css'
import { convertStringToEditorState } from '../../../utils/editorStateManagement'
import CustomEditor, { EditorType } from '../CustomEditor'
import { ContentItems } from '../Newsletter'
import './poll.scss'
interface PollProps {
question: string
......@@ -30,10 +29,10 @@ const Poll: React.FC<PollProps> = ({
return (
<div className="poll">
<h2>Ajouter un sondage (Optionnel)</h2>
<p className="title">Lien</p>
<h3>Lien</h3>
<TextField type="text" value={link} onChange={handleChangeLink} />
<div>
<p className="title">Question</p>
<h3>Question</h3>
<div>
<CustomEditor
baseState={convertStringToEditorState(question)}
......
.poll {
margin: 2rem 0;
.title {
margin: 1rem 0;
}
}
......@@ -17,8 +17,9 @@
.content {
padding: 1rem;
}
.subtitle {
h3 {
margin: 1rem 0;
color: $gold;
}
hr {
margin: 2rem 0rem;
......
......@@ -244,7 +244,7 @@ const Popups: React.FC = () => {
{!isLoading && (
<>
<div className="partnersInfo">
<h2 className="title">Affichage des pop-up de panne</h2>
<h3>Affichage des pop-up de panne</h3>
<div>
<p>Services concernés</p>
<FormGroup style={{ flexDirection: 'row' }}>
......@@ -301,7 +301,7 @@ const Popups: React.FC = () => {
</div>
<div className="customPopup">
<h2 className="title">Affichage de pop-up personnalisée</h2>
<h3>Affichage de pop-up personnalisée</h3>
<div className="customPopup">
<FormGroup style={{ flexDirection: 'row' }}>
<FormControlLabel
......
......@@ -9,7 +9,7 @@
}
.partnersInfo {
margin: 2rem 0;
margin-bottom: 2rem;
h1 {
margin-bottom: 1rem;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment