UI improvements

This commit is contained in:
NouhailaAater 2025-03-25 03:53:25 -04:00
parent ee7a7a0544
commit 1981a7f7d5
11 changed files with 364 additions and 400 deletions

View file

@ -1,6 +1,7 @@
// GiftCheatSheet.tsx // GiftCheatSheet.tsx
import React, { useState } from 'react'; import React, { useState } from 'react';
import './giftCheatSheet.css'; import './giftCheatSheet.css';
import FileCopyIcon from '@mui/icons-material/FileCopy';
const GiftCheatSheet: React.FC = () => { const GiftCheatSheet: React.FC = () => {
const [copySuccess, setCopySuccess] = useState(false); const [copySuccess, setCopySuccess] = useState(false);
@ -42,7 +43,10 @@ const GiftCheatSheet: React.FC = () => {
</code> </code>
</pre> </pre>
<button onClick={() => copyToClipboard(QuestionVraiFaux)}>Copier</button> <button onClick={() => copyToClipboard(QuestionVraiFaux)}>
<FileCopyIcon style={{ fontSize: 18, marginRight: '5px' }} />
Copier
</button>
</div> </div>
<div className="question-type"> <div className="question-type">
@ -54,7 +58,10 @@ const GiftCheatSheet: React.FC = () => {
} }
</code> </code>
</pre> </pre>
<button onClick={() => copyToClipboard(QuestionChoixMul)}>Copier</button> <button onClick={() => copyToClipboard(QuestionChoixMul)}>
{' '}
<FileCopyIcon style={{ fontSize: 18, marginRight: '5px' }} /> Copier
</button>
</div> </div>
<div className="question-type"> <div className="question-type">
<h4>3. Questions à choix multiple avec plusieurs réponses</h4> <h4>3. Questions à choix multiple avec plusieurs réponses</h4>
@ -65,7 +72,10 @@ const GiftCheatSheet: React.FC = () => {
} }
</code> </code>
</pre> </pre>
<button onClick={() => copyToClipboard(QuestionChoixMulMany)}>Copier</button> <button onClick={() => copyToClipboard(QuestionChoixMulMany)}>
<FileCopyIcon style={{ fontSize: 18, marginRight: '5px' }} />
Copier
</button>
</div> </div>
<div className="question-type"> <div className="question-type">
@ -75,7 +85,10 @@ const GiftCheatSheet: React.FC = () => {
{QuestionCourte} {QuestionCourte}
</code> </code>
</pre> </pre>
<button onClick={() => copyToClipboard(QuestionCourte)}>Copier</button> <button onClick={() => copyToClipboard(QuestionCourte)}>
{' '}
<FileCopyIcon style={{ fontSize: 18, marginRight: '5px' }} /> Copier
</button>
</div> </div>
<div className="question-type"> <div className="question-type">
@ -87,7 +100,10 @@ const GiftCheatSheet: React.FC = () => {
} }
</code> </code>
</pre> </pre>
<button onClick={() => copyToClipboard(QuestionNum)}>Copier</button> <button onClick={() => copyToClipboard(QuestionNum)}>
{' '}
<FileCopyIcon style={{ fontSize: 18, marginRight: '5px' }} /> Copier
</button>
</div> </div>
<div className="question-type"> <div className="question-type">

View file

@ -2,6 +2,7 @@ import { Link, useNavigate } from 'react-router-dom';
import * as React from 'react'; import * as React from 'react';
import './header.css'; import './header.css';
import { Button } from '@mui/material'; import { Button } from '@mui/material';
import ExitToAppIcon from '@mui/icons-material/ExitToApp';
interface HeaderProps { interface HeaderProps {
isLoggedIn: boolean; isLoggedIn: boolean;
@ -28,8 +29,9 @@ const Header: React.FC<HeaderProps> = ({ isLoggedIn, handleLogout }) => {
handleLogout(); handleLogout();
navigate('/'); navigate('/');
}} }}
startIcon={<ExitToAppIcon />}
> >
Logout Déconnexion
</Button> </Button>
)} )}

View file

@ -59,7 +59,6 @@ const TrueFalseQuestionDisplay: React.FC<Props> = (props) => {
disabled={disableButton} disabled={disableButton}
> >
{showAnswer ? (<div> {(question.isTrue ? '✅' : '❌')}</div>) : ``} {showAnswer ? (<div> {(question.isTrue ? '✅' : '❌')}</div>) : ``}
<div className={`circle ${selectedTrue}`}>V</div>
<div className={`answer-text ${selectedTrue}`}>Vrai</div> <div className={`answer-text ${selectedTrue}`}>Vrai</div>
{showAnswer && answer && question.trueFormattedFeedback && ( {showAnswer && answer && question.trueFormattedFeedback && (
@ -76,7 +75,6 @@ const TrueFalseQuestionDisplay: React.FC<Props> = (props) => {
> >
{showAnswer ? (<div> {(!question.isTrue ? '✅' : '❌')}</div>) : ``} {showAnswer ? (<div> {(!question.isTrue ? '✅' : '❌')}</div>) : ``}
<div className={`circle ${selectedFalse}`}>F</div>
<div className={`answer-text ${selectedFalse}`}>Faux</div> <div className={`answer-text ${selectedFalse}`}>Faux</div>
{showAnswer && !answer && question.falseFormattedFeedback && ( {showAnswer && !answer && question.falseFormattedFeedback && (

View file

@ -21,13 +21,12 @@ const StudentWaitPage: React.FC<Props> = ({ students, launchQuiz, setQuizMode })
return ( return (
<div className="wait"> <div className="wait">
<div className='button'> <div className="button" style={{ display: 'flex', justifyContent: 'flex-start' }}>
<Button <Button
variant="contained" variant="contained"
onClick={handleLaunchClick} onClick={handleLaunchClick}
startIcon={<PlayArrow />} startIcon={<PlayArrow />}
fullWidth sx={{ fontWeight: 600, fontSize: 20, width: 'auto' }}
sx={{ fontWeight: 600, fontSize: 20 }}
> >
Lancer Lancer
</Button> </Button>

View file

@ -116,7 +116,7 @@ const TeacherModeQuiz: React.FC<TeacherModeQuizProps> = ({
</DialogContent> </DialogContent>
<DialogActions> <DialogActions>
<Button onClick={handleFeedbackDialogClose} color="primary"> <Button onClick={handleFeedbackDialogClose} color="primary">
OK Fermer
</Button> </Button>
</DialogActions> </DialogActions>
</Dialog> </Dialog>

View file

@ -44,7 +44,6 @@ const SimpleLogin: React.FC = () => {
variant="outlined" variant="outlined"
value={email} value={email}
onChange={(e) => setEmail(e.target.value)} onChange={(e) => setEmail(e.target.value)}
placeholder="Nom d'utilisateur"
sx={{ marginBottom: '1rem' }} sx={{ marginBottom: '1rem' }}
fullWidth fullWidth
/> />
@ -55,7 +54,6 @@ const SimpleLogin: React.FC = () => {
type="password" type="password"
value={password} value={password}
onChange={(e) => setPassword(e.target.value)} onChange={(e) => setPassword(e.target.value)}
placeholder="Nom de la salle"
sx={{ marginBottom: '1rem' }} sx={{ marginBottom: '1rem' }}
fullWidth fullWidth
/> />

View file

@ -425,30 +425,63 @@ const Dashboard: React.FC = () => {
return ( return (
<div className="dashboard"> <div className="dashboard">
<div className="title">Tableau de bord</div> {/* Conteneur pour le titre et le sélecteur de salle */}
<div
style={{
display: 'flex',
justifyContent: 'space-between',
alignItems: 'center',
marginBottom: '20px'
}}
>
{/* Titre tableau de bord */}
<div className="title" style={{ fontSize: '30px', fontWeight: 'bold' }}>
Tableau de bord
</div>
<div className="roomSelection"> {/* Sélecteur de salle */}
<label htmlFor="select-room">Sélectionner une salle: </label> <div
<select value={selectedRoom?._id || ''} onChange={(e) => handleSelectRoom(e)}> className="roomSelection"
style={{ display: 'flex', justifyContent: 'flex-end', gap: '15px' }}
>
<select
value={selectedRoom?._id || ''}
onChange={(e) => handleSelectRoom(e)}
id="room-select"
style={{
padding: '8px 12px',
fontSize: '14px',
borderRadius: '8px',
border: '1px solid #ccc',
backgroundColor: '#fff',
maxWidth: '200px',
cursor: 'pointer',
fontWeight: '500'
}}
>
<option value="" disabled> <option value="" disabled>
-- Sélectionner une salle -- Sélectionner une salle
</option> </option>
{rooms.map((room) => ( {rooms.map((room) => (
<option key={room._id} value={room._id}> <option key={room._id} value={room._id}>
{room.title} {room.title}
</option> </option>
))} ))}
<option value="add-room">Ajouter salle</option> <option
value="add-room"
style={{
color: 'black',
backgroundColor: '#f0f0f0',
fontWeight: 'bold'
}}
>
Ajouter une salle
</option>
</select> </select>
</div>
</div> </div>
{selectedRoom && ( {/* Dialog pour créer une salle */}
<div className="roomTitle">
<h2>Salle sélectionnée: {selectedRoom.title}</h2>
</div>
)}
<Dialog open={openAddRoomDialog} onClose={() => setOpenAddRoomDialog(false)}> <Dialog open={openAddRoomDialog} onClose={() => setOpenAddRoomDialog(false)}>
<DialogTitle>Créer une nouvelle salle</DialogTitle> <DialogTitle>Créer une nouvelle salle</DialogTitle>
<DialogContent> <DialogContent>
@ -463,6 +496,8 @@ const Dashboard: React.FC = () => {
<Button onClick={handleCreateRoom}>Créer</Button> <Button onClick={handleCreateRoom}>Créer</Button>
</DialogActions> </DialogActions>
</Dialog> </Dialog>
{/* Dialog d'erreur */}
<Dialog open={showErrorDialog} onClose={() => setShowErrorDialog(false)}> <Dialog open={showErrorDialog} onClose={() => setShowErrorDialog(false)}>
<DialogTitle>Erreur</DialogTitle> <DialogTitle>Erreur</DialogTitle>
<DialogContent> <DialogContent>
@ -473,12 +508,21 @@ const Dashboard: React.FC = () => {
</DialogActions> </DialogActions>
</Dialog> </Dialog>
<div className="search-bar"> <div
style={{
display: 'flex',
justifyContent: 'space-between',
alignItems: 'center',
marginBottom: '20px'
}}
>
<div className="search-bar" style={{ flexGrow: 1, maxWidth: '400px' }}>
<TextField <TextField
onChange={handleSearch} onChange={handleSearch}
value={searchTerm} value={searchTerm}
placeholder="Rechercher un quiz par son titre" placeholder="Rechercher un quiz par son titre"
fullWidth fullWidth
variant="outlined"
InputProps={{ InputProps={{
endAdornment: ( endAdornment: (
<InputAdornment position="end"> <InputAdornment position="end">
@ -488,86 +532,29 @@ const Dashboard: React.FC = () => {
</InputAdornment> </InputAdornment>
) )
}} }}
sx={{
'& .MuiOutlinedInput-root': {
borderRadius: '8px',
'& fieldset': {
borderColor: '#e0e0e0'
},
'&:hover fieldset': {
borderColor: '#5271FF'
}
}
}}
/> />
</div> </div>
<div className="folder"> <div style={{ display: 'flex', gap: '20px', alignItems: 'center' }}>
<div className="select">
<NativeSelect
id="select-folder"
color="primary"
value={selectedFolderId}
onChange={handleSelectFolder}
>
<option value=""> Tous les dossiers... </option>
{folders.map((folder: FolderType) => (
<option value={folder._id} key={folder._id}>
{' '}
{folder.title}{' '}
</option>
))}
</NativeSelect>
</div>
<div className="actions">
<Tooltip title="Ajouter dossier" placement="top">
<IconButton color="primary" onClick={handleCreateFolder}>
{' '}
<Add />{' '}
</IconButton>
</Tooltip>
<Tooltip title="Renommer dossier" placement="top">
<div>
<IconButton
color="primary"
onClick={handleRenameFolder}
disabled={selectedFolderId == ''} // cannot action on all
>
{' '}
<Edit />{' '}
</IconButton>
</div>
</Tooltip>
<Tooltip title="Dupliquer dossier" placement="top">
<div>
<IconButton
color="primary"
onClick={handleDuplicateFolder}
disabled={selectedFolderId == ''} // cannot action on all
>
{' '}
<FolderCopy />{' '}
</IconButton>
</div>
</Tooltip>
<Tooltip title="Supprimer dossier" placement="top">
<div>
<IconButton
aria-label="delete"
color="primary"
onClick={handleDeleteFolder}
disabled={selectedFolderId == ''} // cannot action on all
>
{' '}
<DeleteOutline />{' '}
</IconButton>
</div>
</Tooltip>
</div>
</div>
<div className="ajouter">
<Button <Button
variant="outlined" variant="outlined"
color="primary" color="primary"
startIcon={<Add />} startIcon={<Add />}
onClick={handleCreateQuiz} onClick={handleCreateQuiz}
sx={{ borderRadius: '8px' }}
> >
Ajouter un nouveau quiz Ajouter nouveau quiz
</Button> </Button>
<Button <Button
@ -575,41 +562,136 @@ const Dashboard: React.FC = () => {
color="primary" color="primary"
startIcon={<Upload />} startIcon={<Upload />}
onClick={handleOnImport} onClick={handleOnImport}
sx={{ borderRadius: '8px' }}
> >
Import Importer
</Button> </Button>
</div> </div>
<div className="list"> </div>
{/* Conteneur principal avec les actions et la liste des quiz */}
<div className="folder" style={{ display: 'flex', flexDirection: 'column' }}>
{/* Barre d'outils pour le sélecteur de dossier et les actions */}
<div
className="folder-toolbar"
style={{
display: 'flex',
justifyContent: 'space-between',
alignItems: 'center',
marginBottom: '20px'
}}
>
{/* Sélecteur de dossier */}
<NativeSelect
id="select-folder"
color="primary"
value={selectedFolderId}
onChange={handleSelectFolder}
sx={{
padding: '6px 12px',
maxWidth: '180px',
borderRadius: '8px',
borderColor: '#e0e0e0',
'&:hover': { borderColor: '#5271FF' }
}}
>
<option value="">Tous les dossiers...</option>
{folders.map((folder) => (
<option value={folder._id} key={folder._id}>
{folder.title}
</option>
))}
</NativeSelect>
{/* Actions dossiers */}
<div style={{ display: 'flex', gap: '15px' }}>
<Tooltip title="Ajouter dossier" placement="top">
<IconButton color="primary" onClick={handleCreateFolder}>
<Add />
</IconButton>
</Tooltip>
<Tooltip title="Renommer dossier" placement="top">
<IconButton
color="primary"
onClick={handleRenameFolder}
disabled={selectedFolderId === ''}
>
<Edit />
</IconButton>
</Tooltip>
<Tooltip title="Dupliquer dossier" placement="top">
<IconButton
color="primary"
onClick={handleDuplicateFolder}
disabled={selectedFolderId === ''}
>
<FolderCopy />
</IconButton>
</Tooltip>
<Tooltip title="Supprimer dossier" placement="top">
<IconButton
color="primary"
onClick={handleDeleteFolder}
disabled={selectedFolderId === ''}
>
<DeleteOutline />
</IconButton>
</Tooltip>
</div>
</div>
{/* Liste des quiz organisés par dossier */}
<div className="list" style={{ marginTop: '20px' }}>
{Object.keys(quizzesByFolder).map((folderName) => ( {Object.keys(quizzesByFolder).map((folderName) => (
<CustomCard key={folderName} className="folder-card"> <CustomCard
<div className="folder-tab">{folderName}</div> key={folderName}
className="folder-card"
sx={{ marginBottom: '20px' }}
>
<div
className="folder-tab"
style={{
fontWeight: 'bold',
padding: '10px',
backgroundColor: '#f5f5f5'
}}
>
{folderName}
</div>
<CardContent> <CardContent>
{quizzesByFolder[folderName].map((quiz: QuizType) => ( {quizzesByFolder[folderName].map((quiz) => (
<div className="quiz" key={quiz._id}> <div
className="quiz"
key={quiz._id}
style={{ marginBottom: '10px' }}
>
<div className="title"> <div className="title">
<Tooltip title="Lancer quiz" placement="top"> <Tooltip title="Lancer quiz" placement="top">
<div>
<Button <Button
variant="outlined" variant="outlined"
onClick={() => handleLancerQuiz(quiz)} onClick={() => handleLancerQuiz(quiz)}
disabled={!validateQuiz(quiz.content)} disabled={!validateQuiz(quiz.content)}
sx={{ width: '100%' }}
> >
{`${quiz.title} (${quiz.content.length} question${ {`${quiz.title} (${
quiz.content.length
} question${
quiz.content.length > 1 ? 's' : '' quiz.content.length > 1 ? 's' : ''
})`} })`}
</Button> </Button>
</div>
</Tooltip> </Tooltip>
</div> </div>
<div className="actions"> <div
className="actions"
style={{ display: 'flex', gap: '10px' }}
>
<Tooltip title="Télécharger quiz" placement="top"> <Tooltip title="Télécharger quiz" placement="top">
<IconButton <IconButton
color="primary" color="primary"
onClick={() => downloadTxtFile(quiz)} onClick={() => downloadTxtFile(quiz)}
> >
{' '} <FileDownload />
<FileDownload />{' '}
</IconButton> </IconButton>
</Tooltip> </Tooltip>
@ -618,8 +700,7 @@ const Dashboard: React.FC = () => {
color="primary" color="primary"
onClick={() => handleEditQuiz(quiz)} onClick={() => handleEditQuiz(quiz)}
> >
{' '} <Edit />
<Edit />{' '}
</IconButton> </IconButton>
</Tooltip> </Tooltip>
@ -628,19 +709,16 @@ const Dashboard: React.FC = () => {
color="primary" color="primary"
onClick={() => handleDuplicateQuiz(quiz)} onClick={() => handleDuplicateQuiz(quiz)}
> >
{' '} <ContentCopy />
<ContentCopy />{' '}
</IconButton> </IconButton>
</Tooltip> </Tooltip>
<Tooltip title="Supprimer quiz" placement="top"> <Tooltip title="Supprimer quiz" placement="top">
<IconButton <IconButton
aria-label="delete"
color="primary" color="primary"
onClick={() => handleRemoveQuiz(quiz)} onClick={() => handleRemoveQuiz(quiz)}
> >
{' '} <DeleteOutline />
<DeleteOutline />{' '}
</IconButton> </IconButton>
</Tooltip> </Tooltip>
@ -649,8 +727,7 @@ const Dashboard: React.FC = () => {
color="primary" color="primary"
onClick={() => handleShareQuiz(quiz)} onClick={() => handleShareQuiz(quiz)}
> >
{' '} <Share />
<Share />{' '}
</IconButton> </IconButton>
</Tooltip> </Tooltip>
</div> </div>
@ -660,6 +737,9 @@ const Dashboard: React.FC = () => {
</CustomCard> </CustomCard>
))} ))}
</div> </div>
</div>
{/* Modal d'importation */}
<ImportModal <ImportModal
open={showImportModal} open={showImportModal}
handleOnClose={() => setShowImportModal(false)} handleOnClose={() => setShowImportModal(false)}

View file

@ -17,6 +17,7 @@ import ReturnButton from 'src/components/ReturnButton/ReturnButton';
import ApiService from '../../../services/ApiService'; import ApiService from '../../../services/ApiService';
import { escapeForGIFT } from '../../../utils/giftUtils'; import { escapeForGIFT } from '../../../utils/giftUtils';
import { Upload } from '@mui/icons-material'; import { Upload } from '@mui/icons-material';
import SaveIcon from '@mui/icons-material/Save';
interface EditQuizParams { interface EditQuizParams {
id: string; id: string;
@ -244,6 +245,7 @@ const QuizForm: React.FC = () => {
</NativeSelect></label> </NativeSelect></label>
<Button variant="contained" onClick={handleQuizSave}> <Button variant="contained" onClick={handleQuizSave}>
{<SaveIcon sx={{ fontSize: 20, marginRight: '8px' }} />}
Enregistrer Enregistrer
</Button> </Button>

View file

@ -382,15 +382,19 @@ const ManageRoom: React.FC = () => {
width: '100%' width: '100%'
}} }}
> >
{( {
<div <div
className="userCount subtitle smallText" className="userCount subtitle smallText"
style={{ display: "flex", justifyContent: "flex-end" }} style={{
display: 'flex',
justifyContent: 'flex-end',
alignItems: 'center'
}}
> >
<GroupIcon style={{ marginRight: '5px' }} /> <GroupIcon style={{ marginRight: '5px' }} />
{students.length}/60 {students.length}/60
</div> </div>
)} }
</div> </div>
<div className="dumb"></div> <div className="dumb"></div>

View file

@ -1,26 +1,33 @@
.room .roomHeader { .room .roomHeader {
width: 100%; width: 100%;
display: flex; display: flex;
flex-direction: row; flex-direction: column;
justify-content: space-between; align-items: flex-start;
align-content: stretch position: relative;
} }
.room .roomHeader .returnButton {
flex-basis: 10%;
display: flex; .room .roomHeader .returnButton {
justify-content: center; position: absolute;
top: 10px;
left: 0;
z-index: 10;
} }
.room .roomHeader .centerTitle { .room .roomHeader .centerTitle {
flex-basis: auto; flex-basis: auto;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: flex-end; justify-content: flex-start;
align-items: flex-end; align-items: flex-start;
margin-top: 40px;
}
.room .roomHeader .headerContent {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 60px;
} }
.room .roomHeader .dumb { .room .roomHeader .dumb {
@ -31,155 +38,11 @@
width: 100%; width: 100%;
height: 70vh; height: 70vh;
display: flex; display: flex;
overflow: auto; overflow: auto;
justify-content: center; justify-content: center;
/* align-items: center; */
} }
.room h1 {
text-align: center;
margin-top: 50px;
/* .create-room-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100%;
} }
.manage-room-container {
display: flex;
flex-direction: column;
align-items: center;
height: 100%;
width: 100%;
}
.quiz-setup-container {
display: flex;
flex-direction: column;
width: 100%;
margin-top: 2rem;
}
.quiz-mode-selection {
display: flex;
flex-grow: 0;
flex-direction: column;
justify-content: center;
align-items: center;
margin-top: 10px;
height: 15vh;
}
.users-container {
display: flex;
flex-direction: column;
align-items: center;
flex-grow: 1;
gap: 2vh;
}
.launch-quiz-btn {
width: 20vw;
height: 11vh;
margin-top: 2vh;
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}
.mode-choice {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
width: 20vw;
margin-top: 2vh;
}
.user {
background-color: #e7dad1;
padding: 10px 20px;
border: 1px solid black;
border-radius: 10px;
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}
.bottom-btn {
display: flex;
width: 100%;
justify-content: flex-end;
margin-top: 2vh;
}
.room-container {
position: relative;
width: 100%;
max-width: 60vw;
}
@media only screen and (max-device-width: 768px) {
.room-container {
max-width: 100%;
}
}
.room-wrapper {
display: flex;
width: 100%;
height: 100%;
justify-content: center;
}
.room-name-wrapper {
display: flex;
flex-direction: column;
align-items: end;
}
.user-item {
width: 100%;
}
.flex-column-wrapper {
display: flex;
flex-direction: column;
height: 85vh;
overflow: auto;
}
.preview-and-result-container {
display: flex;
flex-direction: column;
gap: 2rem;
}
.nextQuestionButton {
align-self: flex-end;
margin-bottom: 5rem !important;
}
.top-container {
display: flex;
justify-content: space-between;
align-items: center;
}
@media only screen and (max-device-height: 4000px) {
.flex-column-wrapper {
height: 60vh;
}
}
@media only screen and (max-device-height: 1079px) {
.flex-column-wrapper {
height: 50vh;
}
}
@media only screen and (max-device-height: 741px) {
.flex-column-wrapper {
height: 40vh;
}
} */

View file

@ -10,6 +10,7 @@ import { Button, NativeSelect } from '@mui/material';
import ReturnButton from 'src/components/ReturnButton/ReturnButton'; import ReturnButton from 'src/components/ReturnButton/ReturnButton';
import ApiService from '../../../services/ApiService'; import ApiService from '../../../services/ApiService';
import SaveIcon from '@mui/icons-material/Save';
const Share: React.FC = () => { const Share: React.FC = () => {
console.log('Component rendered'); console.log('Component rendered');
@ -119,6 +120,7 @@ const Share: React.FC = () => {
</NativeSelect> </NativeSelect>
<Button variant="contained" onClick={handleQuizSave}> <Button variant="contained" onClick={handleQuizSave}>
{<SaveIcon sx={{ fontSize: 20, marginRight: '8px' }} />}
Enregistrer Enregistrer
</Button> </Button>