From f30b34b2935ab16cd68108dc1101093b0dbb811d Mon Sep 17 00:00:00 2001 From: Thibault Guillou Date: Mon, 11 Nov 2024 19:32:36 +0100 Subject: [PATCH] linter order import --- server/controllers/analytic.ts | 3 --- src/components/Avatar.tsx | 5 ++--- src/components/Base.tsx | 3 +-- src/components/FinalStep/ImageStepContainer.tsx | 3 +-- src/components/H5pOLD.tsx | 3 +-- src/components/Header.tsx | 7 +++---- src/components/LanguageFilter.tsx | 3 +-- src/components/Map/Map.tsx | 1 - src/components/Modal.tsx | 3 +-- src/components/Navigation.tsx | 5 ++--- src/components/NavigationMobile.tsx | 3 +-- src/components/PageLayout.tsx | 3 +-- src/components/PaginationNav/PaginationNav.tsx | 3 +-- src/components/SearchField.tsx | 3 +-- src/components/Steps.tsx | 5 ++--- src/components/StepsButtons.tsx | 5 ++--- src/components/SuggestionCarousel/SuggestionCarousel.tsx | 7 +++---- src/components/VillageMonde.tsx | 3 +-- src/components/VillageSelect.tsx | 3 +-- src/components/WelcomeModal/FirstPhase.tsx | 5 ++--- src/components/WelcomeModal/SecondPhase.tsx | 3 +-- src/components/WelcomeModal/ThirdPhase.tsx | 3 +-- src/components/WorldMap/Popover.tsx | 3 +-- src/components/WorldMap/WorldMap.tsx | 9 ++++----- src/components/WorldMap/use-full-screen.tsx | 3 +-- src/components/accueil/Filters/FilterSelect.tsx | 3 +-- src/components/accueil/Filters/Filters.tsx | 3 +-- src/components/accueil/LastActivities.tsx | 3 +-- src/components/accueil/LinkChild.tsx | 3 +-- src/components/accueil/NewHome.tsx | 3 +-- src/components/accueil/PelicoProfilNavigation.tsx | 3 +-- src/components/accueil/RightNavigation.tsx | 3 +-- src/components/accueil/SubHeader.tsx | 3 +-- src/components/accueil/VideoPresentation.tsx | 3 +-- src/components/accueil/VillageComponent.tsx | 3 +-- src/components/activities/ActivityCard/AnthemCard.tsx | 3 +-- src/components/activities/ActivityCard/DefiCard.tsx | 3 +-- src/components/activities/ActivityCard/EnigmeCard.tsx | 3 +-- .../activities/ActivityCard/FreeContentCard.tsx | 3 +-- src/components/activities/ActivityCard/GameCard.tsx | 3 +-- .../activities/ActivityCard/GameCardMaClasse.tsx | 3 +-- src/components/activities/ActivityCard/IndiceCard.tsx | 3 +-- src/components/activities/ActivityCard/MascotteCard.tsx | 3 +-- src/components/activities/ActivityCard/MimicCard.tsx | 3 +-- .../activities/ActivityCard/PresentationCard.tsx | 3 +-- src/components/activities/ActivityCard/QuestionCard.tsx | 3 +-- src/components/activities/ActivityCard/ReactionCard.tsx | 3 +-- src/components/activities/ActivityCard/ReportageCard.tsx | 3 +-- src/components/activities/ActivityCard/StoryCard.tsx | 3 +-- src/components/activities/ActivityCard/SymbolCard.tsx | 3 +-- .../activities/ActivityCard/VerseRecordCard.tsx | 3 +-- .../ActivityCard/activity-admin/ActivityCardAdmin.tsx | 5 ++--- .../activity-admin/ActivityCardAdminList.tsx | 5 ++--- .../ActivityCard/activity-admin/AllActivitiesAdmin.tsx | 3 +-- src/components/activities/ActivityCard/index.tsx | 5 ++--- .../activities/ActivityChoice/ActivityChoiceButton.tsx | 3 +-- src/components/activities/ActivityChoice/index.tsx | 3 +-- .../activities/ActivityComments/AddComment.tsx | 3 +-- .../activities/ActivityComments/CommentCard.tsx | 3 +-- src/components/activities/ActivitySelect.tsx | 3 +-- .../activities/ActivityView/DefiActivityView.tsx | 3 +-- .../activities/ActivityView/EnigmeActivityView.tsx | 3 +-- .../activities/ActivityView/MascotteActivityView.tsx | 3 +-- .../activities/ActivityView/StoriesDataCardView.tsx | 3 +-- .../activities/ActivityView/StoryActivityView.tsx | 5 ++--- src/components/activities/List.tsx | 3 +-- .../activities/anthem/AnthemTrack/AnthemTrack.tsx | 3 +-- .../anthem/AnthemTrackIcon/AnthemTrackIcon.tsx | 3 +-- src/components/activities/content/AddContentCard.tsx | 3 +-- src/components/activities/content/MascotteTemplate.tsx | 5 ++--- .../content/editors/AudioEditor/AudioEditor.tsx | 5 ++--- .../content/editors/DocumentEditor/DocumentEditor.tsx | 3 +-- .../content/editors/DocumentEditor/DocumentModal.tsx | 3 +-- .../activities/content/editors/EditorContainer.tsx | 3 +-- src/components/activities/content/editors/H5pEditor.tsx | 5 ++--- .../content/editors/ImageEditor/AvatarEditor.tsx | 3 +-- .../content/editors/ImageEditor/ImageEditor.tsx | 3 +-- .../content/editors/ImageEditor/ImageModal.tsx | 7 +++---- .../activities/content/editors/SoundEditor.tsx | 5 ++--- .../activities/content/editors/SyllableEditor.tsx | 3 +-- .../content/editors/TextEditor/SimpleTextEditor.tsx | 5 ++--- .../content/editors/TextEditor/toolbar/ColorPicker.tsx | 3 +-- .../content/editors/TextEditor/toolbar/EmojiPicker.tsx | 3 +-- .../content/editors/TextEditor/toolbar/InlineButtons.tsx | 3 +-- .../content/editors/TextEditor/toolbar/Link.tsx | 9 ++++----- .../editors/TextEditor/toolbar/TextAlignButtons.tsx | 3 +-- .../content/editors/TextEditor/toolbar/TitleChoice.tsx | 3 +-- .../content/editors/VideoEditor/VideoEditor.tsx | 3 +-- .../content/editors/VideoEditor/VideoModals.tsx | 9 ++++----- src/components/activities/content/views/SoundView.tsx | 3 +-- .../activities/content/views/VideoView/VideoView.tsx | 3 +-- src/components/admin/AdminHeader.tsx | 5 ++--- src/components/admin/AdminNavigation.tsx | 5 ++--- src/components/admin/AdminTable.tsx | 3 +-- src/components/admin/AdminTile.tsx | 3 +-- src/components/admin/NewAdminHeader.tsx | 3 +-- src/components/admin/NewAdminNavigation.tsx | 3 +-- src/components/admin/analytics/BarWidget.tsx | 3 +-- src/components/admin/analytics/TimePicker.tsx | 3 +-- .../cards/ClassesExchangesCard/ClassesExchangesCard.tsx | 5 ++--- .../cards/CommentCard/CommentCard.tsx | 3 +-- .../admin/dashboard-statistics/charts/BarCharts.tsx | 3 +-- .../admin/dashboard-statistics/charts/PieCharts.tsx | 3 +-- .../admin/dashboard-statistics/filters/PhaseDropdown.tsx | 3 +-- .../map/DashboardWorldMap/DashboardWorldMap.tsx | 3 +-- .../admin/dashboard-statistics/menu/PhaseDetails.tsx | 5 ++--- .../admin/dashboard-statistics/nav/DashboardTabs.tsx | 3 +-- src/components/admin/mediatheque/CardMediatheque.tsx | 3 +-- src/components/admin/mediatheque/CheckboxAdmin.tsx | 3 +-- src/components/admin/mediatheque/DownloadButton.tsx | 9 ++++----- src/components/admin/mediatheque/Filter.tsx | 3 +-- src/components/admin/mediatheque/FiltersActivities.tsx | 5 ++--- src/components/admin/mediatheque/MediaCarousel.tsx | 3 +-- src/components/admin/mediatheque/ModalFilter.tsx | 3 +-- src/components/audio/AudioMixer/AudioMixer.tsx | 3 +-- .../AudioMixerTrackControls/AudioMixerTrackControl.tsx | 3 +-- src/components/audio/AudioPlayer/AudioPlayer.tsx | 3 +-- src/components/audio/DraggableTrack.tsx | 3 +-- src/components/audio/VolumeControls/VolumeControl.tsx | 5 ++--- src/components/buttons/AddAudioButton.tsx | 3 +-- src/components/buttons/CustomRadio.tsx | 3 +-- src/components/buttons/DeleteButton.tsx | 3 +-- src/components/buttons/EditButton.tsx | 3 +-- src/components/buttons/GameResponseButton.tsx | 3 +-- src/components/buttons/HelpButton.tsx | 3 +-- src/components/buttons/QuestionButton.tsx | 3 +-- src/components/buttons/RedButton.tsx | 3 +-- src/components/buttons/ThemeChoiceButton.tsx | 3 +-- src/components/game/DisplayGameById.tsx | 4 ++-- src/components/game/List.tsx | 5 ++--- src/components/game/Play.tsx | 3 +-- src/components/game/Previsualisation.tsx | 3 +-- src/components/game/componentGameMapping/GameField.tsx | 3 +-- src/components/game/componentGameMapping/GameMedia.tsx | 5 ++--- src/components/game/componentGameMapping/GameRadio.tsx | 3 +-- src/components/game/componentGameMapping/GameSelect.tsx | 3 +-- src/components/h5p/H5pEditor.tsx | 3 +-- src/components/mon-compte/PanelInput.tsx | 3 +-- src/components/selectors/CountrySelector.tsx | 3 +-- src/components/selectors/LanguageSelector.tsx | 3 +-- src/components/selectors/MimicSelector.tsx | 3 +-- src/components/selectors/MultipleCountrySelector.tsx | 3 +-- src/components/selectors/MultipleCurrencySelector.tsx | 3 +-- src/components/selectors/MultipleLanguageSelector.tsx | 3 +-- src/components/storyPictureWheel/storyPictureWheel.tsx | 5 ++--- src/components/table/CollapsibleTable.tsx | 4 ++-- 146 files changed, 187 insertions(+), 333 deletions(-) diff --git a/server/controllers/analytic.ts b/server/controllers/analytic.ts index 50269be6c..77d0c6aa1 100644 --- a/server/controllers/analytic.ts +++ b/server/controllers/analytic.ts @@ -283,9 +283,6 @@ analyticController.router.post( AppDataSource.getRepository(User).createQueryBuilder('user').select('user.firstlogin').where({ id: data.userId }).getRawOne(), ]); - console.log('USER IN CONTROLLER %!!!!!', data.userId); - console.log('USER PHASE IN CONTROLLER %!!!!!', userPhase); - if (sessionCount === 0 && data.event === 'pageview' && data.params?.isInitial) { const session = new AnalyticSession(); session.id = data.sessionId; diff --git a/src/components/Avatar.tsx b/src/components/Avatar.tsx index 487f2449e..d7ba42c74 100644 --- a/src/components/Avatar.tsx +++ b/src/components/Avatar.tsx @@ -1,8 +1,7 @@ -import Link from 'next/link'; -import React from 'react'; - import PersonIcon from '@mui/icons-material/Person'; import { Avatar, Tooltip } from '@mui/material'; +import Link from 'next/link'; +import React from 'react'; import { bgPage } from 'src/styles/variables.const'; import PelicoSouriant from 'src/svg/pelico/pelico-souriant.svg'; diff --git a/src/components/Base.tsx b/src/components/Base.tsx index b62afb48d..c786e7da4 100644 --- a/src/components/Base.tsx +++ b/src/components/Base.tsx @@ -1,6 +1,5 @@ -import React from 'react'; - import { Box, Grid } from '@mui/material'; +import React from 'react'; import { Navigation } from './Navigation'; import { NavigationMobile } from './NavigationMobile'; diff --git a/src/components/FinalStep/ImageStepContainer.tsx b/src/components/FinalStep/ImageStepContainer.tsx index 3c081ec95..bbcf54270 100644 --- a/src/components/FinalStep/ImageStepContainer.tsx +++ b/src/components/FinalStep/ImageStepContainer.tsx @@ -1,10 +1,9 @@ +import { Grid, ButtonBase } from '@mui/material'; import classNames from 'classnames'; import Image from 'next/image'; import router from 'next/router'; import React from 'react'; -import { Grid, ButtonBase } from '@mui/material'; - import { KeepRatio } from '../KeepRatio'; import { EditButton } from '../buttons/EditButton'; import { bgPage, primaryColor, warningColor } from 'src/styles/variables.const'; diff --git a/src/components/H5pOLD.tsx b/src/components/H5pOLD.tsx index 9df527d6b..e6535dec2 100644 --- a/src/components/H5pOLD.tsx +++ b/src/components/H5pOLD.tsx @@ -1,6 +1,5 @@ -import React from 'react'; - import CircularProgress from '@mui/material/CircularProgress'; +import React from 'react'; import { bgPage } from 'src/styles/variables.const'; diff --git a/src/components/Header.tsx b/src/components/Header.tsx index 022989074..e5782c0cd 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -1,12 +1,11 @@ -import Link from 'next/link'; -import { useRouter } from 'next/router'; -import React from 'react'; - import SettingsIcon from '@mui/icons-material/Settings'; import { Box } from '@mui/material'; import IconButton from '@mui/material/IconButton'; import Menu from '@mui/material/Menu'; import MenuItem from '@mui/material/MenuItem'; +import Link from 'next/link'; +import { useRouter } from 'next/router'; +import React from 'react'; import AccessControl from './AccessControl'; import { VillageSelect } from './VillageSelect'; diff --git a/src/components/LanguageFilter.tsx b/src/components/LanguageFilter.tsx index 726e4f912..a0095edc2 100644 --- a/src/components/LanguageFilter.tsx +++ b/src/components/LanguageFilter.tsx @@ -1,7 +1,6 @@ -import React from 'react'; - import type { SxProps, Theme } from '@mui/material'; import { Autocomplete, TextField } from '@mui/material'; +import React from 'react'; import type { Language } from 'types/language.type'; diff --git a/src/components/Map/Map.tsx b/src/components/Map/Map.tsx index b99e5aead..5dd977f17 100644 --- a/src/components/Map/Map.tsx +++ b/src/components/Map/Map.tsx @@ -5,7 +5,6 @@ import {} from 'leaflet.fullscreen'; import maplibregl from 'maplibre-gl'; import { useRouter } from 'next/router'; import React from 'react'; - // eslint-disable-next-line import/order import { Tooltip } from '@mui/material'; diff --git a/src/components/Modal.tsx b/src/components/Modal.tsx index 794dad9e6..0d3283dd1 100644 --- a/src/components/Modal.tsx +++ b/src/components/Modal.tsx @@ -1,5 +1,3 @@ -import React from 'react'; - import CloseIcon from '@mui/icons-material/Close'; import { CircularProgress } from '@mui/material'; import Box from '@mui/material/Box'; @@ -12,6 +10,7 @@ import IconButton from '@mui/material/IconButton'; import type { LinearProgressProps } from '@mui/material/LinearProgress'; import LinearProgress from '@mui/material/LinearProgress'; import Typography from '@mui/material/Typography'; +import React from 'react'; import { RedButton } from 'src/components/buttons/RedButton'; import { bgPage } from 'src/styles/variables.const'; diff --git a/src/components/Navigation.tsx b/src/components/Navigation.tsx index f9b472549..701ae7863 100644 --- a/src/components/Navigation.tsx +++ b/src/components/Navigation.tsx @@ -1,10 +1,9 @@ +import { Box, Button } from '@mui/material'; +import Switch from '@mui/material/Switch'; import Link from 'next/link'; import { useRouter } from 'next/router'; import * as React from 'react'; -import { Box, Button } from '@mui/material'; -import Switch from '@mui/material/Switch'; - import { AvatarImg } from './Avatar'; import { VillageMonde } from './VillageMonde'; import { Modal } from 'src/components/Modal'; diff --git a/src/components/NavigationMobile.tsx b/src/components/NavigationMobile.tsx index 7fc22b9ef..eb55bf156 100644 --- a/src/components/NavigationMobile.tsx +++ b/src/components/NavigationMobile.tsx @@ -1,5 +1,3 @@ -import React, { useState } from 'react'; - import CloseIcon from '@mui/icons-material/Close'; import MenuIcon from '@mui/icons-material/Menu'; import Box from '@mui/material/Box'; @@ -7,6 +5,7 @@ import Divider from '@mui/material/Divider'; import Drawer from '@mui/material/Drawer'; import Grid from '@mui/material/Grid'; import IconButton from '@mui/material/IconButton'; +import React, { useState } from 'react'; import { Navigation } from './Navigation'; import ShowFor from './ShowFor'; diff --git a/src/components/PageLayout.tsx b/src/components/PageLayout.tsx index 30b44b6ea..9bffbba0b 100644 --- a/src/components/PageLayout.tsx +++ b/src/components/PageLayout.tsx @@ -1,6 +1,5 @@ -import React from 'react'; - import { Box } from '@mui/material'; +import React from 'react'; type PageLayoutProps = { children: React.ReactNode; diff --git a/src/components/PaginationNav/PaginationNav.tsx b/src/components/PaginationNav/PaginationNav.tsx index 1b529fe22..95f1be6c2 100644 --- a/src/components/PaginationNav/PaginationNav.tsx +++ b/src/components/PaginationNav/PaginationNav.tsx @@ -1,7 +1,6 @@ -import React from 'react'; - import type { SelectChangeEvent } from '@mui/material'; import { Box, InputLabel, MenuItem, Pagination, Select } from '@mui/material'; +import React from 'react'; interface PaginationNavProps { page: number; diff --git a/src/components/SearchField.tsx b/src/components/SearchField.tsx index 10850b6e8..1f143e1e8 100644 --- a/src/components/SearchField.tsx +++ b/src/components/SearchField.tsx @@ -1,9 +1,8 @@ -import React from 'react'; - import SearchIcon from '@mui/icons-material/Search'; import InputBase from '@mui/material/InputBase'; import type { SxProps, Theme } from '@mui/material/styles'; import { styled } from '@mui/material/styles'; +import React from 'react'; const Search = styled('div')(({ theme }) => ({ position: 'relative', diff --git a/src/components/Steps.tsx b/src/components/Steps.tsx index 6463dc49f..2c16f16c8 100644 --- a/src/components/Steps.tsx +++ b/src/components/Steps.tsx @@ -1,9 +1,8 @@ -import { useRouter } from 'next/router'; -import React from 'react'; - import CheckIcon from '@mui/icons-material/Check'; import { Step, StepConnector, StepLabel, Stepper } from '@mui/material/'; import type { StepIconProps } from '@mui/material/StepIcon'; +import { useRouter } from 'next/router'; +import React from 'react'; import { ActivityContext } from 'src/contexts/activityContext'; import { primaryColor, primaryColorLight2, successColor, warningColor } from 'src/styles/variables.const'; diff --git a/src/components/StepsButtons.tsx b/src/components/StepsButtons.tsx index 7cc6decea..66c7a6a72 100644 --- a/src/components/StepsButtons.tsx +++ b/src/components/StepsButtons.tsx @@ -1,9 +1,8 @@ -import Link from 'next/link'; -import React from 'react'; - import ChevronLeftIcon from '@mui/icons-material/ChevronLeft'; import ChevronRightIcon from '@mui/icons-material/ChevronRight'; import { Box, Button } from '@mui/material'; +import Link from 'next/link'; +import React from 'react'; export interface StepsButtonProps { prev?: string | (() => void); diff --git a/src/components/SuggestionCarousel/SuggestionCarousel.tsx b/src/components/SuggestionCarousel/SuggestionCarousel.tsx index 1c3fe00e1..519ea0542 100644 --- a/src/components/SuggestionCarousel/SuggestionCarousel.tsx +++ b/src/components/SuggestionCarousel/SuggestionCarousel.tsx @@ -1,11 +1,10 @@ -import Image from 'next/image'; -import Link from 'next/link'; -import React from 'react'; - import { Button } from '@mui/material'; import Card from '@mui/material/Card'; import Tab from '@mui/material/Tab'; import Tabs from '@mui/material/Tabs'; +import Image from 'next/image'; +import Link from 'next/link'; +import React from 'react'; import { KeepRatio } from 'src/components/KeepRatio'; import { useResizeObserver } from 'src/hooks/useResizeObserver'; diff --git a/src/components/VillageMonde.tsx b/src/components/VillageMonde.tsx index 52e12fd23..18fb0b6e6 100644 --- a/src/components/VillageMonde.tsx +++ b/src/components/VillageMonde.tsx @@ -1,6 +1,5 @@ -import * as React from 'react'; - import { Typography } from '@mui/material'; +import * as React from 'react'; import { Flag } from 'src/components/Flag'; import { ClassroomContext } from 'src/contexts/classroomContext'; diff --git a/src/components/VillageSelect.tsx b/src/components/VillageSelect.tsx index 3b3be733d..a8073a278 100644 --- a/src/components/VillageSelect.tsx +++ b/src/components/VillageSelect.tsx @@ -1,6 +1,5 @@ -import React from 'react'; - import { Button, Grid } from '@mui/material'; +import React from 'react'; import { UserContext } from 'src/contexts/userContext'; import { VillageContext } from 'src/contexts/villageContext'; diff --git a/src/components/WelcomeModal/FirstPhase.tsx b/src/components/WelcomeModal/FirstPhase.tsx index cb520e86e..2682e9e48 100644 --- a/src/components/WelcomeModal/FirstPhase.tsx +++ b/src/components/WelcomeModal/FirstPhase.tsx @@ -1,11 +1,10 @@ -import { useSnackbar } from 'notistack'; -import React from 'react'; - import KeyboardArrowLeft from '@mui/icons-material/KeyboardArrowLeft'; import KeyboardArrowRight from '@mui/icons-material/KeyboardArrowRight'; import { Checkbox } from '@mui/material'; import Button from '@mui/material/Button'; import MobileStepper from '@mui/material/MobileStepper'; +import { useSnackbar } from 'notistack'; +import React from 'react'; import { CGU } from 'src/components/CGU'; import { Flag } from 'src/components/Flag'; diff --git a/src/components/WelcomeModal/SecondPhase.tsx b/src/components/WelcomeModal/SecondPhase.tsx index acdbad6e7..d30673025 100644 --- a/src/components/WelcomeModal/SecondPhase.tsx +++ b/src/components/WelcomeModal/SecondPhase.tsx @@ -1,8 +1,7 @@ +import Button from '@mui/material/Button'; import { useSnackbar } from 'notistack'; import React from 'react'; -import Button from '@mui/material/Button'; - import { Modal } from 'src/components/Modal'; import { UserContext } from 'src/contexts/userContext'; import { VillageContext } from 'src/contexts/villageContext'; diff --git a/src/components/WelcomeModal/ThirdPhase.tsx b/src/components/WelcomeModal/ThirdPhase.tsx index b675f6b48..faca6e708 100644 --- a/src/components/WelcomeModal/ThirdPhase.tsx +++ b/src/components/WelcomeModal/ThirdPhase.tsx @@ -1,8 +1,7 @@ +import Button from '@mui/material/Button'; import { useSnackbar } from 'notistack'; import React from 'react'; -import Button from '@mui/material/Button'; - import { Modal } from 'src/components/Modal'; import { UserContext } from 'src/contexts/userContext'; import { VillageContext } from 'src/contexts/villageContext'; diff --git a/src/components/WorldMap/Popover.tsx b/src/components/WorldMap/Popover.tsx index 74cdfe97d..ad063987f 100644 --- a/src/components/WorldMap/Popover.tsx +++ b/src/components/WorldMap/Popover.tsx @@ -1,6 +1,5 @@ -import * as React from 'react'; - import Card from '@mui/material/Card'; +import * as React from 'react'; import { UserPopover } from './UserPopover'; import type { User } from 'types/user.type'; diff --git a/src/components/WorldMap/WorldMap.tsx b/src/components/WorldMap/WorldMap.tsx index 0f3d93a4b..eb9ceb992 100644 --- a/src/components/WorldMap/WorldMap.tsx +++ b/src/components/WorldMap/WorldMap.tsx @@ -1,5 +1,9 @@ import 'leaflet/dist/leaflet.css'; import 'maplibre-gl/dist/maplibre-gl.css'; +import AddIcon from '@mui/icons-material/Add'; +import CloseIcon from '@mui/icons-material/Close'; +import RemoveIcon from '@mui/icons-material/Remove'; +import { Button, ButtonGroup, IconButton, Typography } from '@mui/material'; import L from 'leaflet'; import {} from 'leaflet.fullscreen'; import { useRouter } from 'next/router'; @@ -7,11 +11,6 @@ import * as React from 'react'; import ReactDOM from 'react-dom'; import { useQuery } from 'react-query'; -import AddIcon from '@mui/icons-material/Add'; -import CloseIcon from '@mui/icons-material/Close'; -import RemoveIcon from '@mui/icons-material/Remove'; -import { Button, ButtonGroup, IconButton, Typography } from '@mui/material'; - import type { PopoverData } from './Popover'; import { isUser, Popover } from './Popover'; import { UserPopover } from './UserPopover'; diff --git a/src/components/WorldMap/use-full-screen.tsx b/src/components/WorldMap/use-full-screen.tsx index a5ad83622..48192dbdb 100644 --- a/src/components/WorldMap/use-full-screen.tsx +++ b/src/components/WorldMap/use-full-screen.tsx @@ -1,9 +1,8 @@ -import * as React from 'react'; - import FullscreenIcon from '@mui/icons-material/Fullscreen'; import FullscreenExitIcon from '@mui/icons-material/FullscreenExit'; import Button from '@mui/material/Button'; import Tooltip from '@mui/material/Tooltip'; +import * as React from 'react'; export const useFullScreen = () => { const containerRef = React.useRef(null); diff --git a/src/components/accueil/Filters/FilterSelect.tsx b/src/components/accueil/Filters/FilterSelect.tsx index f75eafdc0..e0bae3ca7 100644 --- a/src/components/accueil/Filters/FilterSelect.tsx +++ b/src/components/accueil/Filters/FilterSelect.tsx @@ -1,11 +1,10 @@ -import React from 'react'; - import ExpandLessIcon from '@mui/icons-material/ExpandLess'; import ExpandMoreIcon from '@mui/icons-material/ExpandMore'; import Checkbox from '@mui/material/Checkbox'; import ClickAwayListener from '@mui/material/ClickAwayListener'; import FormControlLabel from '@mui/material/FormControlLabel'; import FormGroup from '@mui/material/FormGroup'; +import React from 'react'; import { primaryColor } from 'src/styles/variables.const'; diff --git a/src/components/accueil/Filters/Filters.tsx b/src/components/accueil/Filters/Filters.tsx index dce6a039a..7a84fb0dc 100644 --- a/src/components/accueil/Filters/Filters.tsx +++ b/src/components/accueil/Filters/Filters.tsx @@ -1,7 +1,6 @@ -import React from 'react'; - import { Box } from '@mui/material'; import Checkbox from '@mui/material/Checkbox'; +import React from 'react'; import { FilterSelect } from './FilterSelect'; import { Flag } from 'src/components/Flag'; diff --git a/src/components/accueil/LastActivities.tsx b/src/components/accueil/LastActivities.tsx index f62ca7dcd..70a3f4d0f 100644 --- a/src/components/accueil/LastActivities.tsx +++ b/src/components/accueil/LastActivities.tsx @@ -1,6 +1,5 @@ -import React from 'react'; - import { Button } from '@mui/material'; +import React from 'react'; import { CommentIcon } from '../activities/ActivityCard/CommentIcon'; import { icons, DESC } from 'src/components/activities/utils'; diff --git a/src/components/accueil/LinkChild.tsx b/src/components/accueil/LinkChild.tsx index 58a8fab51..76f92c3d3 100644 --- a/src/components/accueil/LinkChild.tsx +++ b/src/components/accueil/LinkChild.tsx @@ -1,9 +1,8 @@ +import { Button, TextField } from '@mui/material'; import { useRouter } from 'next/router'; import { useSnackbar } from 'notistack'; import React from 'react'; -import { Button, TextField } from '@mui/material'; - import { DeleteButton } from '../buttons/DeleteButton'; // import { ClassroomContext } from 'src/contexts/classroomContext'; import { UserContext } from 'src/contexts/userContext'; diff --git a/src/components/accueil/NewHome.tsx b/src/components/accueil/NewHome.tsx index 75c678a82..10c1da998 100644 --- a/src/components/accueil/NewHome.tsx +++ b/src/components/accueil/NewHome.tsx @@ -1,8 +1,7 @@ +import { Box, Button, Grid, Typography } from '@mui/material'; import { useRouter } from 'next/router'; import React from 'react'; -import { Box, Button, Grid, Typography } from '@mui/material'; - import Home from 'src/svg/home.svg'; import Logo from 'src/svg/logo_1village.svg'; import School from 'src/svg/school.svg'; diff --git a/src/components/accueil/PelicoProfilNavigation.tsx b/src/components/accueil/PelicoProfilNavigation.tsx index 20f35f2a3..6a96035f7 100644 --- a/src/components/accueil/PelicoProfilNavigation.tsx +++ b/src/components/accueil/PelicoProfilNavigation.tsx @@ -1,6 +1,5 @@ -import React from 'react'; - import { Avatar, Button } from '@mui/material'; +import React from 'react'; import { CommentIcon } from '../activities/ActivityCard/CommentIcon'; import { icons, DESC } from 'src/components/activities/utils'; diff --git a/src/components/accueil/RightNavigation.tsx b/src/components/accueil/RightNavigation.tsx index f9f396637..038552789 100644 --- a/src/components/accueil/RightNavigation.tsx +++ b/src/components/accueil/RightNavigation.tsx @@ -1,10 +1,9 @@ +import { Box, Button, Link, Tooltip } from '@mui/material'; import Image from 'next/image'; import { useRouter } from 'next/router'; import type { ReactNode } from 'react'; import React from 'react'; -import { Box, Button, Link, Tooltip } from '@mui/material'; - import { AvatarImg } from '../Avatar'; import { Flag } from '../Flag'; import { LastActivities } from './LastActivities'; diff --git a/src/components/accueil/SubHeader.tsx b/src/components/accueil/SubHeader.tsx index caf47a49e..e54e39c00 100644 --- a/src/components/accueil/SubHeader.tsx +++ b/src/components/accueil/SubHeader.tsx @@ -1,8 +1,7 @@ +import { Box, Typography } from '@mui/material'; import { useRouter } from 'next/router'; import React from 'react'; -import { Box, Typography } from '@mui/material'; - import { VillageContext } from 'src/contexts/villageContext'; import { primaryColor } from 'src/styles/variables.const'; import JumellesLight from 'src/svg/jumelles-light.svg'; diff --git a/src/components/accueil/VideoPresentation.tsx b/src/components/accueil/VideoPresentation.tsx index d9ff2f953..3012122c4 100644 --- a/src/components/accueil/VideoPresentation.tsx +++ b/src/components/accueil/VideoPresentation.tsx @@ -1,9 +1,8 @@ // import { Button, Link as RegisterLink, NoSsr, Box, TextField, Grid } from '@mui/material'; +import { Button, Link as RegisterLink, NoSsr } from '@mui/material'; import Link from 'next/link'; import React from 'react'; -import { Button, Link as RegisterLink, NoSsr } from '@mui/material'; - import { KeepRatio } from 'src/components/KeepRatio'; import Logo from 'src/svg/logo.svg'; // import PelicoReflechit from 'src/svg/pelico/pelico_reflechit.svg'; diff --git a/src/components/accueil/VillageComponent.tsx b/src/components/accueil/VillageComponent.tsx index edbca546e..08e3bd5c6 100644 --- a/src/components/accueil/VillageComponent.tsx +++ b/src/components/accueil/VillageComponent.tsx @@ -1,7 +1,6 @@ -import React from 'react'; - import Card from '@mui/material/Card'; import CardActionArea from '@mui/material/CardActionArea'; +import React from 'react'; import { KeepRatio } from 'src/components/KeepRatio'; import Acti1 from 'src/svg/activities/acti1.svg'; diff --git a/src/components/activities/ActivityCard/AnthemCard.tsx b/src/components/activities/ActivityCard/AnthemCard.tsx index 6bd51527d..be055ef93 100644 --- a/src/components/activities/ActivityCard/AnthemCard.tsx +++ b/src/components/activities/ActivityCard/AnthemCard.tsx @@ -1,8 +1,7 @@ +import { Button } from '@mui/material'; import Link from 'next/link'; import React from 'react'; -import { Button } from '@mui/material'; - import { CommentIcon } from './CommentIcon'; import type { ActivityCardProps } from './activity-card.types'; import { RedButton } from 'src/components/buttons/RedButton'; diff --git a/src/components/activities/ActivityCard/DefiCard.tsx b/src/components/activities/ActivityCard/DefiCard.tsx index 745c6d3c7..e0448d832 100644 --- a/src/components/activities/ActivityCard/DefiCard.tsx +++ b/src/components/activities/ActivityCard/DefiCard.tsx @@ -1,10 +1,9 @@ +import { Button } from '@mui/material'; import Image from 'next/image'; import Link from 'next/link'; import { useRouter } from 'next/router'; import React from 'react'; -import { Button } from '@mui/material'; - import { CommentIcon } from './CommentIcon'; import type { ActivityCardProps } from './activity-card.types'; import { ECO_ACTIONS, getDefi, getLanguageTheme, isCooking, isEco, isLanguage } from 'src/activity-types/defi.constants'; diff --git a/src/components/activities/ActivityCard/EnigmeCard.tsx b/src/components/activities/ActivityCard/EnigmeCard.tsx index 0efcf3f4f..efcdb3a45 100644 --- a/src/components/activities/ActivityCard/EnigmeCard.tsx +++ b/src/components/activities/ActivityCard/EnigmeCard.tsx @@ -1,10 +1,9 @@ +import { Button } from '@mui/material'; import Image from 'next/image'; import Link from 'next/link'; import router from 'next/router'; import React from 'react'; -import { Button } from '@mui/material'; - import { CommentIcon } from './CommentIcon'; import type { ActivityCardProps } from './activity-card.types'; import { ENIGME_TYPES } from 'src/activity-types/enigme.constants'; diff --git a/src/components/activities/ActivityCard/FreeContentCard.tsx b/src/components/activities/ActivityCard/FreeContentCard.tsx index 0ce370b72..9342c7572 100644 --- a/src/components/activities/ActivityCard/FreeContentCard.tsx +++ b/src/components/activities/ActivityCard/FreeContentCard.tsx @@ -1,10 +1,9 @@ +import { Button } from '@mui/material'; import Image from 'next/image'; import Link from 'next/link'; import router from 'next/router'; import React from 'react'; -import { Button } from '@mui/material'; - import { CommentIcon } from './CommentIcon'; import type { ActivityCardProps } from './activity-card.types'; import { getImage } from 'src/activity-types/freeContent.constants'; diff --git a/src/components/activities/ActivityCard/GameCard.tsx b/src/components/activities/ActivityCard/GameCard.tsx index 46470bf80..e75c1c1ba 100644 --- a/src/components/activities/ActivityCard/GameCard.tsx +++ b/src/components/activities/ActivityCard/GameCard.tsx @@ -1,11 +1,10 @@ +import { Button } from '@mui/material'; import Image from 'next/image'; import Link from 'next/link'; import router from 'next/router'; import React, { useState, useEffect } from 'react'; import ReactPlayer from 'react-player'; -import { Button } from '@mui/material'; - import { CommentIcon } from './CommentIcon'; import type { ActivityCardProps } from './activity-card.types'; import { useCountAllStandardGame } from 'src/api/game/game.getAllGames'; diff --git a/src/components/activities/ActivityCard/GameCardMaClasse.tsx b/src/components/activities/ActivityCard/GameCardMaClasse.tsx index 27e364aad..03f5711ef 100644 --- a/src/components/activities/ActivityCard/GameCardMaClasse.tsx +++ b/src/components/activities/ActivityCard/GameCardMaClasse.tsx @@ -1,11 +1,10 @@ +import { Button, Paper } from '@mui/material'; import Image from 'next/image'; import Link from 'next/link'; import router from 'next/router'; import React from 'react'; import ReactPlayer from 'react-player'; -import { Button, Paper } from '@mui/material'; - import { titles, REACTIONS, icons } from '../utils'; import { CommentIcon } from './CommentIcon'; import type { ActivityCardProps } from './activity-card.types'; diff --git a/src/components/activities/ActivityCard/IndiceCard.tsx b/src/components/activities/ActivityCard/IndiceCard.tsx index 4c4fa84c9..3b4208705 100644 --- a/src/components/activities/ActivityCard/IndiceCard.tsx +++ b/src/components/activities/ActivityCard/IndiceCard.tsx @@ -1,10 +1,9 @@ +import { Button } from '@mui/material'; import Image from 'next/image'; import Link from 'next/link'; import router from 'next/router'; import React from 'react'; -import { Button } from '@mui/material'; - import { CommentIcon } from './CommentIcon'; import type { ActivityCardProps } from './activity-card.types'; import { getIndice } from 'src/activity-types/indice.constants'; diff --git a/src/components/activities/ActivityCard/MascotteCard.tsx b/src/components/activities/ActivityCard/MascotteCard.tsx index 6158ca857..135867181 100644 --- a/src/components/activities/ActivityCard/MascotteCard.tsx +++ b/src/components/activities/ActivityCard/MascotteCard.tsx @@ -1,8 +1,7 @@ +import { Button } from '@mui/material'; import Link from 'next/link'; import React from 'react'; -import { Button } from '@mui/material'; - import { CommentIcon } from './CommentIcon'; import type { ActivityCardProps } from './activity-card.types'; import type { MascotteActivity } from 'src/activity-types/mascotte.types'; diff --git a/src/components/activities/ActivityCard/MimicCard.tsx b/src/components/activities/ActivityCard/MimicCard.tsx index 601ed2b8b..382f0fcba 100644 --- a/src/components/activities/ActivityCard/MimicCard.tsx +++ b/src/components/activities/ActivityCard/MimicCard.tsx @@ -1,10 +1,9 @@ +import { Button } from '@mui/material'; import Link from 'next/link'; import router from 'next/router'; import React, { useState, useMemo, useEffect } from 'react'; import ReactPlayer from 'react-player'; -import { Button } from '@mui/material'; - import { CommentIcon } from './CommentIcon'; import type { ActivityCardProps } from './activity-card.types'; import { RedButton } from 'src/components/buttons/RedButton'; diff --git a/src/components/activities/ActivityCard/PresentationCard.tsx b/src/components/activities/ActivityCard/PresentationCard.tsx index 250d371f1..ac06fbbbe 100644 --- a/src/components/activities/ActivityCard/PresentationCard.tsx +++ b/src/components/activities/ActivityCard/PresentationCard.tsx @@ -1,10 +1,9 @@ +import { Button } from '@mui/material'; import Image from 'next/image'; import Link from 'next/link'; import router from 'next/router'; import React from 'react'; -import { Button } from '@mui/material'; - import { CommentIcon } from './CommentIcon'; import type { ActivityCardProps } from './activity-card.types'; import { PRESENTATION_THEMATIQUE } from 'src/activity-types/presentation.constants'; diff --git a/src/components/activities/ActivityCard/QuestionCard.tsx b/src/components/activities/ActivityCard/QuestionCard.tsx index 2e8141a19..9e1540945 100644 --- a/src/components/activities/ActivityCard/QuestionCard.tsx +++ b/src/components/activities/ActivityCard/QuestionCard.tsx @@ -1,8 +1,7 @@ +import { Button } from '@mui/material'; import Link from 'next/link'; import React from 'react'; -import { Button } from '@mui/material'; - import { CommentIcon } from './CommentIcon'; import type { ActivityCardProps } from './activity-card.types'; import type { QuestionActivity } from 'src/activity-types/question.types'; diff --git a/src/components/activities/ActivityCard/ReactionCard.tsx b/src/components/activities/ActivityCard/ReactionCard.tsx index e677c5a97..43c39b1cb 100644 --- a/src/components/activities/ActivityCard/ReactionCard.tsx +++ b/src/components/activities/ActivityCard/ReactionCard.tsx @@ -1,9 +1,8 @@ +import { Button } from '@mui/material'; import Image from 'next/image'; import Link from 'next/link'; import React from 'react'; -import { Button } from '@mui/material'; - import { CommentIcon } from './CommentIcon'; import type { ActivityCardProps } from './activity-card.types'; import type { ReactionActivity } from 'src/activity-types/reaction.types'; diff --git a/src/components/activities/ActivityCard/ReportageCard.tsx b/src/components/activities/ActivityCard/ReportageCard.tsx index bf5c5ef2a..0485aedd6 100644 --- a/src/components/activities/ActivityCard/ReportageCard.tsx +++ b/src/components/activities/ActivityCard/ReportageCard.tsx @@ -1,11 +1,10 @@ +import { Button } from '@mui/material'; import Image from 'next/image'; import Link from 'next/link'; import router from 'next/router'; import React from 'react'; import ReactPlayer from 'react-player'; -import { Button } from '@mui/material'; - import { CommentIcon } from './CommentIcon'; import type { ActivityCardProps } from './activity-card.types'; import { getReportage } from 'src/activity-types/reportage.constants'; diff --git a/src/components/activities/ActivityCard/StoryCard.tsx b/src/components/activities/ActivityCard/StoryCard.tsx index 7f7af01d9..ec719fff8 100644 --- a/src/components/activities/ActivityCard/StoryCard.tsx +++ b/src/components/activities/ActivityCard/StoryCard.tsx @@ -1,10 +1,9 @@ +import { Button } from '@mui/material'; import Image from 'next/image'; import Link from 'next/link'; import router from 'next/router'; import React from 'react'; -import { Button } from '@mui/material'; - import { CommentIcon } from './CommentIcon'; import type { ActivityCardProps } from './activity-card.types'; import { RedButton } from 'src/components/buttons/RedButton'; diff --git a/src/components/activities/ActivityCard/SymbolCard.tsx b/src/components/activities/ActivityCard/SymbolCard.tsx index 61ba895bb..feaa5f9a2 100644 --- a/src/components/activities/ActivityCard/SymbolCard.tsx +++ b/src/components/activities/ActivityCard/SymbolCard.tsx @@ -1,10 +1,9 @@ +import { Button } from '@mui/material'; import Image from 'next/image'; import Link from 'next/link'; import router from 'next/router'; import React from 'react'; -import { Button } from '@mui/material'; - import { CommentIcon } from './CommentIcon'; import type { ActivityCardProps } from './activity-card.types'; import { getSymbol } from 'src/activity-types/symbol.constants'; diff --git a/src/components/activities/ActivityCard/VerseRecordCard.tsx b/src/components/activities/ActivityCard/VerseRecordCard.tsx index ae4e27bbc..b9bf7669e 100644 --- a/src/components/activities/ActivityCard/VerseRecordCard.tsx +++ b/src/components/activities/ActivityCard/VerseRecordCard.tsx @@ -1,8 +1,7 @@ +import { Box, Button } from '@mui/material'; import Link from 'next/link'; import React from 'react'; -import { Box, Button } from '@mui/material'; - import { CommentIcon } from './CommentIcon'; import type { ActivityCardProps } from './activity-card.types'; import { RedButton } from 'src/components/buttons/RedButton'; diff --git a/src/components/activities/ActivityCard/activity-admin/ActivityCardAdmin.tsx b/src/components/activities/ActivityCard/activity-admin/ActivityCardAdmin.tsx index 78b18644b..a6efaeb3f 100644 --- a/src/components/activities/ActivityCard/activity-admin/ActivityCardAdmin.tsx +++ b/src/components/activities/ActivityCard/activity-admin/ActivityCardAdmin.tsx @@ -1,10 +1,9 @@ +import MoreVertIcon from '@mui/icons-material/MoreVert'; +import { Card, CardHeader, Avatar, CardMedia, CardContent, Typography, Button, CardActions, CircularProgress, Menu, MenuItem } from '@mui/material'; import React, { useEffect } from 'react'; import { useQueryClient } from 'react-query'; import type { Activity } from 'server/entities/activity'; -import MoreVertIcon from '@mui/icons-material/MoreVert'; -import { Card, CardHeader, Avatar, CardMedia, CardContent, Typography, Button, CardActions, CircularProgress, Menu, MenuItem } from '@mui/material'; - import { usePublishActivity } from 'src/api/activities/activities.put'; import PelicoSouriant from 'src/svg/pelico/pelico-souriant.svg'; import { htmlToText } from 'src/utils'; diff --git a/src/components/activities/ActivityCard/activity-admin/ActivityCardAdminList.tsx b/src/components/activities/ActivityCard/activity-admin/ActivityCardAdminList.tsx index 24d346f0b..9a0258c63 100644 --- a/src/components/activities/ActivityCard/activity-admin/ActivityCardAdminList.tsx +++ b/src/components/activities/ActivityCard/activity-admin/ActivityCardAdminList.tsx @@ -1,8 +1,7 @@ -import React from 'react'; -import type { Activity } from 'server/entities/activity'; - import { Button } from '@mui/material'; import Paper from '@mui/material/Paper'; +import React from 'react'; +import type { Activity } from 'server/entities/activity'; import ActivityCardAdmin from './ActivityCardAdmin'; diff --git a/src/components/activities/ActivityCard/activity-admin/AllActivitiesAdmin.tsx b/src/components/activities/ActivityCard/activity-admin/AllActivitiesAdmin.tsx index c1a2191ae..cea56c626 100644 --- a/src/components/activities/ActivityCard/activity-admin/AllActivitiesAdmin.tsx +++ b/src/components/activities/ActivityCard/activity-admin/AllActivitiesAdmin.tsx @@ -1,8 +1,7 @@ +import type { SelectChangeEvent } from '@mui/material'; import React, { useCallback, useState } from 'react'; import type { Activity } from 'server/entities/activity'; -import type { SelectChangeEvent } from '@mui/material'; - import PelicoNoContent from 'src/components/NoContentPelico'; import PaginationNav from 'src/components/PaginationNav/PaginationNav'; import ActivityCardAdmin from 'src/components/activities/ActivityCard/activity-admin/ActivityCardAdmin'; diff --git a/src/components/activities/ActivityCard/index.tsx b/src/components/activities/ActivityCard/index.tsx index b465a636b..13a9e35f3 100644 --- a/src/components/activities/ActivityCard/index.tsx +++ b/src/components/activities/ActivityCard/index.tsx @@ -1,8 +1,7 @@ -import Link from 'next/link'; -import React from 'react'; - import { Box } from '@mui/material'; import Paper from '@mui/material/Paper'; +import Link from 'next/link'; +import React from 'react'; import { titles, icons, REACTIONS } from '../utils'; import { AnthemCard } from './AnthemCard'; diff --git a/src/components/activities/ActivityChoice/ActivityChoiceButton.tsx b/src/components/activities/ActivityChoice/ActivityChoiceButton.tsx index dbfa37b23..09ad0713e 100644 --- a/src/components/activities/ActivityChoice/ActivityChoiceButton.tsx +++ b/src/components/activities/ActivityChoice/ActivityChoiceButton.tsx @@ -1,8 +1,7 @@ +import ButtonBase from '@mui/material/ButtonBase'; import Link from 'next/link'; import React from 'react'; -import ButtonBase from '@mui/material/ButtonBase'; - import { KeepRatio } from 'src/components/KeepRatio'; interface ActivityChoiceButtonProps { diff --git a/src/components/activities/ActivityChoice/index.tsx b/src/components/activities/ActivityChoice/index.tsx index 4d402b5b8..f1e07b4b4 100644 --- a/src/components/activities/ActivityChoice/index.tsx +++ b/src/components/activities/ActivityChoice/index.tsx @@ -1,6 +1,5 @@ -import React, { useCallback, useContext } from 'react'; - import { Tooltip } from '@mui/material'; +import React, { useCallback, useContext } from 'react'; import { ActivityChoiceButton } from './ActivityChoiceButton'; import { GameContext } from 'src/contexts/gameContext'; diff --git a/src/components/activities/ActivityComments/AddComment.tsx b/src/components/activities/ActivityComments/AddComment.tsx index 527f6607b..8782232aa 100644 --- a/src/components/activities/ActivityComments/AddComment.tsx +++ b/src/components/activities/ActivityComments/AddComment.tsx @@ -1,9 +1,8 @@ +import { Box, Button, CircularProgress, Tooltip } from '@mui/material'; import dynamic from 'next/dynamic'; import Link from 'next/link'; import React from 'react'; -import { Box, Button, CircularProgress, Tooltip } from '@mui/material'; - import { AvatarImg } from 'src/components/Avatar'; import { UserContext } from 'src/contexts/userContext'; import { useCommentRequests } from 'src/services/useComments'; diff --git a/src/components/activities/ActivityComments/CommentCard.tsx b/src/components/activities/ActivityComments/CommentCard.tsx index 09b15fdc2..96907e3ee 100644 --- a/src/components/activities/ActivityComments/CommentCard.tsx +++ b/src/components/activities/ActivityComments/CommentCard.tsx @@ -1,8 +1,7 @@ +import { Box, Button, CircularProgress, Paper } from '@mui/material'; import dynamic from 'next/dynamic'; import React from 'react'; -import { Box, Button, CircularProgress, Paper } from '@mui/material'; - import { AvatarImg } from 'src/components/Avatar'; import { Flag } from 'src/components/Flag'; import { UserDisplayName } from 'src/components/UserDisplayName'; diff --git a/src/components/activities/ActivitySelect.tsx b/src/components/activities/ActivitySelect.tsx index bc39302d7..9a5c495f8 100644 --- a/src/components/activities/ActivitySelect.tsx +++ b/src/components/activities/ActivitySelect.tsx @@ -1,7 +1,6 @@ -import React from 'react'; - import ChevronRightIcon from '@mui/icons-material/ChevronRight'; import { Box, Button, CircularProgress } from '@mui/material'; +import React from 'react'; import { Activities } from './List'; import { ThemeChoiceButton } from 'src/components/buttons/ThemeChoiceButton'; diff --git a/src/components/activities/ActivityView/DefiActivityView.tsx b/src/components/activities/ActivityView/DefiActivityView.tsx index 1e47e0314..521485108 100644 --- a/src/components/activities/ActivityView/DefiActivityView.tsx +++ b/src/components/activities/ActivityView/DefiActivityView.tsx @@ -1,8 +1,7 @@ +import { Grid } from '@mui/material'; import Image from 'next/image'; import React from 'react'; -import { Grid } from '@mui/material'; - import type { ActivityViewProps } from './activity-view.types'; import { ECO_ACTIONS, getDefi, isCooking, isEco, isLanguage, getLanguageTheme } from 'src/activity-types/defi.constants'; import type { DefiActivity } from 'src/activity-types/defi.types'; diff --git a/src/components/activities/ActivityView/EnigmeActivityView.tsx b/src/components/activities/ActivityView/EnigmeActivityView.tsx index 304866850..c59e41b23 100644 --- a/src/components/activities/ActivityView/EnigmeActivityView.tsx +++ b/src/components/activities/ActivityView/EnigmeActivityView.tsx @@ -1,8 +1,7 @@ +import { Button, Card } from '@mui/material'; import Link from 'next/link'; import React from 'react'; -import { Button, Card } from '@mui/material'; - import type { ActivityViewProps } from './activity-view.types'; import { ENIGME_TYPES, getEnigmeTimeLeft } from 'src/activity-types/enigme.constants'; import type { EnigmeActivity, EnigmeData } from 'src/activity-types/enigme.types'; diff --git a/src/components/activities/ActivityView/MascotteActivityView.tsx b/src/components/activities/ActivityView/MascotteActivityView.tsx index 2bc0d8253..35f7cb1c3 100644 --- a/src/components/activities/ActivityView/MascotteActivityView.tsx +++ b/src/components/activities/ActivityView/MascotteActivityView.tsx @@ -1,6 +1,5 @@ -import React from 'react'; - import { Grid, Box } from '@mui/material'; +import React from 'react'; import { ImageView } from '../content/views/ImageView'; import type { ActivityViewProps } from './activity-view.types'; diff --git a/src/components/activities/ActivityView/StoriesDataCardView.tsx b/src/components/activities/ActivityView/StoriesDataCardView.tsx index 219e4d2ad..611f5a56d 100644 --- a/src/components/activities/ActivityView/StoriesDataCardView.tsx +++ b/src/components/activities/ActivityView/StoriesDataCardView.tsx @@ -1,6 +1,5 @@ -import React from 'react'; - import { Grid } from '@mui/material'; +import React from 'react'; import { ActivityCard } from '../ActivityCard'; import { useImageStories } from 'src/services/useImagesStory'; diff --git a/src/components/activities/ActivityView/StoryActivityView.tsx b/src/components/activities/ActivityView/StoryActivityView.tsx index 5abbe058d..44c370a48 100644 --- a/src/components/activities/ActivityView/StoryActivityView.tsx +++ b/src/components/activities/ActivityView/StoryActivityView.tsx @@ -1,12 +1,11 @@ -import Image from 'next/image'; -import React from 'react'; - import { Container } from '@mui/material'; import Card from '@mui/material/Card'; import CardMedia from '@mui/material/CardMedia'; import Grid from '@mui/material/Grid'; import Typography from '@mui/material/Typography'; import { Box } from '@mui/system'; +import Image from 'next/image'; +import React from 'react'; import StoriesDataCardView from './StoriesDataCardView'; import type { ActivityViewProps } from './activity-view.types'; diff --git a/src/components/activities/List.tsx b/src/components/activities/List.tsx index 02682a9ff..8377f7fbc 100644 --- a/src/components/activities/List.tsx +++ b/src/components/activities/List.tsx @@ -1,7 +1,6 @@ -import React, { useState } from 'react'; - import type { SelectChangeEvent } from '@mui/material'; import { Button } from '@mui/material'; +import React, { useState } from 'react'; import PaginationNav from '../PaginationNav/PaginationNav'; import { ActivityCard } from './ActivityCard'; diff --git a/src/components/activities/anthem/AnthemTrack/AnthemTrack.tsx b/src/components/activities/anthem/AnthemTrack/AnthemTrack.tsx index d1f3383d8..116844d54 100644 --- a/src/components/activities/anthem/AnthemTrack/AnthemTrack.tsx +++ b/src/components/activities/anthem/AnthemTrack/AnthemTrack.tsx @@ -1,6 +1,5 @@ -import React from 'react'; - import { Alert, Box, TextField } from '@mui/material'; +import React from 'react'; import type { DisplayableInstrumentsType } from '../../../../utils/instruments'; import AudioEditor from '../../content/editors/AudioEditor/AudioEditor'; diff --git a/src/components/activities/anthem/AnthemTrackIcon/AnthemTrackIcon.tsx b/src/components/activities/anthem/AnthemTrackIcon/AnthemTrackIcon.tsx index a563d299d..a5628d0f6 100644 --- a/src/components/activities/anthem/AnthemTrackIcon/AnthemTrackIcon.tsx +++ b/src/components/activities/anthem/AnthemTrackIcon/AnthemTrackIcon.tsx @@ -1,6 +1,5 @@ -import React, { useState } from 'react'; - import { TextField, IconButton, Autocomplete, Popper, Fade, Paper, Box, Icon } from '@mui/material'; +import React, { useState } from 'react'; import type { DisplayableInstrumentsType } from '../../../../utils/instruments'; import { InstrumentSvg } from '../InstrumentSvg/InstrumentSvg'; diff --git a/src/components/activities/content/AddContentCard.tsx b/src/components/activities/content/AddContentCard.tsx index 418eb30b4..f9af6fbf0 100644 --- a/src/components/activities/content/AddContentCard.tsx +++ b/src/components/activities/content/AddContentCard.tsx @@ -1,7 +1,6 @@ -import React from 'react'; - import AppsIcon from '@mui/icons-material/Apps'; import { ButtonBase, Card } from '@mui/material'; +import React from 'react'; import { UserContext } from 'src/contexts/userContext'; import DocumentIcon from 'src/svg/editor/document_icon.svg'; diff --git a/src/components/activities/content/MascotteTemplate.tsx b/src/components/activities/content/MascotteTemplate.tsx index fd6259639..e452d0ad2 100644 --- a/src/components/activities/content/MascotteTemplate.tsx +++ b/src/components/activities/content/MascotteTemplate.tsx @@ -1,8 +1,7 @@ -import Link from 'next/link'; -import React from 'react'; - import { Button } from '@mui/material'; import Paper from '@mui/material/Paper'; +import Link from 'next/link'; +import React from 'react'; import { AvatarImg } from 'src/components/Avatar'; import { UserDisplayName } from 'src/components/UserDisplayName'; diff --git a/src/components/activities/content/editors/AudioEditor/AudioEditor.tsx b/src/components/activities/content/editors/AudioEditor/AudioEditor.tsx index 22b1ba4cb..20be7ee8c 100644 --- a/src/components/activities/content/editors/AudioEditor/AudioEditor.tsx +++ b/src/components/activities/content/editors/AudioEditor/AudioEditor.tsx @@ -1,9 +1,8 @@ -import { useSnackbar } from 'notistack'; -import React from 'react'; - import CloudUploadIcon from '@mui/icons-material/CloudUpload'; import { Button, Divider, TextField } from '@mui/material'; import Alert from '@mui/material/Alert'; +import { useSnackbar } from 'notistack'; +import React from 'react'; import styles from './AudioEditor.module.css'; import { Modal } from 'src/components/Modal'; diff --git a/src/components/activities/content/editors/DocumentEditor/DocumentEditor.tsx b/src/components/activities/content/editors/DocumentEditor/DocumentEditor.tsx index d490e7fa1..4916dc142 100644 --- a/src/components/activities/content/editors/DocumentEditor/DocumentEditor.tsx +++ b/src/components/activities/content/editors/DocumentEditor/DocumentEditor.tsx @@ -1,6 +1,5 @@ -import React, { useState } from 'react'; - import { Button } from '@mui/material'; +import React, { useState } from 'react'; import { EditorContainer } from '../EditorContainer'; import DocumentModal from './DocumentModal'; diff --git a/src/components/activities/content/editors/DocumentEditor/DocumentModal.tsx b/src/components/activities/content/editors/DocumentEditor/DocumentModal.tsx index 7ee082cea..59416924d 100644 --- a/src/components/activities/content/editors/DocumentEditor/DocumentModal.tsx +++ b/src/components/activities/content/editors/DocumentEditor/DocumentModal.tsx @@ -1,7 +1,6 @@ -import React, { useState } from 'react'; - import CloudUploadIcon from '@mui/icons-material/CloudUpload'; import { Button } from '@mui/material'; +import React, { useState } from 'react'; import PdfDisplay from './PdfDisplay'; import { useUploadFiles } from 'src/api/files/uploadFiles.post'; diff --git a/src/components/activities/content/editors/EditorContainer.tsx b/src/components/activities/content/editors/EditorContainer.tsx index 7cbfe99ac..d7ea91556 100644 --- a/src/components/activities/content/editors/EditorContainer.tsx +++ b/src/components/activities/content/editors/EditorContainer.tsx @@ -1,8 +1,7 @@ +import DragIndicatorIcon from '@mui/icons-material/DragIndicator'; import classnames from 'classnames'; import React from 'react'; -import DragIndicatorIcon from '@mui/icons-material/DragIndicator'; - import { DeleteButton } from 'src/components/buttons/DeleteButton'; interface EditorContainerProps { diff --git a/src/components/activities/content/editors/H5pEditor.tsx b/src/components/activities/content/editors/H5pEditor.tsx index 51a2ef2b5..e8f07fd49 100644 --- a/src/components/activities/content/editors/H5pEditor.tsx +++ b/src/components/activities/content/editors/H5pEditor.tsx @@ -1,8 +1,7 @@ -import Link from 'next/link'; -import React from 'react'; - import { Button, Divider, FormControl, InputLabel, MenuItem, Select } from '@mui/material'; import TextField from '@mui/material/TextField'; +import Link from 'next/link'; +import React from 'react'; import type { EditorProps } from '../content.types'; import { EditorContainer } from './EditorContainer'; diff --git a/src/components/activities/content/editors/ImageEditor/AvatarEditor.tsx b/src/components/activities/content/editors/ImageEditor/AvatarEditor.tsx index a76a50560..3ff3156f9 100644 --- a/src/components/activities/content/editors/ImageEditor/AvatarEditor.tsx +++ b/src/components/activities/content/editors/ImageEditor/AvatarEditor.tsx @@ -1,7 +1,6 @@ -import React from 'react'; - import AddIcon from '@mui/icons-material/Add'; import { ButtonBase } from '@mui/material'; +import React from 'react'; import type { EditorProps } from '../../content.types'; import { ImageModal } from './ImageModal'; diff --git a/src/components/activities/content/editors/ImageEditor/ImageEditor.tsx b/src/components/activities/content/editors/ImageEditor/ImageEditor.tsx index 19db2fdbc..a31a2260c 100644 --- a/src/components/activities/content/editors/ImageEditor/ImageEditor.tsx +++ b/src/components/activities/content/editors/ImageEditor/ImageEditor.tsx @@ -1,8 +1,7 @@ +import { Button } from '@mui/material'; import Image from 'next/image'; import React from 'react'; -import { Button } from '@mui/material'; - import type { EditorProps } from '../../content.types'; import { EditorContainer } from '../EditorContainer'; import { ImageModal } from './ImageModal'; diff --git a/src/components/activities/content/editors/ImageEditor/ImageModal.tsx b/src/components/activities/content/editors/ImageEditor/ImageModal.tsx index 0d1b49c1e..8308d3739 100644 --- a/src/components/activities/content/editors/ImageEditor/ImageModal.tsx +++ b/src/components/activities/content/editors/ImageEditor/ImageModal.tsx @@ -1,10 +1,9 @@ -import Image from 'next/image'; -import { useSnackbar } from 'notistack'; -import React from 'react'; - import CloudUploadIcon from '@mui/icons-material/CloudUpload'; import { Button, Divider, TextField } from '@mui/material'; import Alert from '@mui/material/Alert'; +import Image from 'next/image'; +import { useSnackbar } from 'notistack'; +import React from 'react'; import type { ImgCroppieRef } from 'src/components/ImgCroppie'; import { ImgCroppie } from 'src/components/ImgCroppie'; diff --git a/src/components/activities/content/editors/SoundEditor.tsx b/src/components/activities/content/editors/SoundEditor.tsx index ec8d3d064..c49918953 100644 --- a/src/components/activities/content/editors/SoundEditor.tsx +++ b/src/components/activities/content/editors/SoundEditor.tsx @@ -1,9 +1,8 @@ -import { useSnackbar } from 'notistack'; -import React from 'react'; - import CloudUploadIcon from '@mui/icons-material/CloudUpload'; import { Button, Divider, TextField } from '@mui/material'; import Alert from '@mui/material/Alert'; +import { useSnackbar } from 'notistack'; +import React from 'react'; import type { EditorProps } from '../content.types'; import { EditorContainer } from './EditorContainer'; diff --git a/src/components/activities/content/editors/SyllableEditor.tsx b/src/components/activities/content/editors/SyllableEditor.tsx index 0f8098dba..081e1fa78 100644 --- a/src/components/activities/content/editors/SyllableEditor.tsx +++ b/src/components/activities/content/editors/SyllableEditor.tsx @@ -1,6 +1,5 @@ -import React from 'react'; - import { Box, InputBase } from '@mui/material'; +import React from 'react'; import { primaryColor } from 'src/styles/variables.const'; import BacklineIcon from 'src/svg/anthem/backline.svg'; diff --git a/src/components/activities/content/editors/TextEditor/SimpleTextEditor.tsx b/src/components/activities/content/editors/TextEditor/SimpleTextEditor.tsx index 2b840a2f1..7061aa5a8 100644 --- a/src/components/activities/content/editors/TextEditor/SimpleTextEditor.tsx +++ b/src/components/activities/content/editors/TextEditor/SimpleTextEditor.tsx @@ -1,3 +1,5 @@ +import { Divider } from '@mui/material'; +import Paper from '@mui/material/Paper'; import classnames from 'classnames'; import type { DraftHandleValue, DraftEditorCommand, ContentBlock } from 'draft-js'; import { Editor, RichUtils, CompositeDecorator, ContentState, convertToRaw, EditorState, Modifier } from 'draft-js'; @@ -17,9 +19,6 @@ import { import htmlToDraft from 'html-to-draftjs'; import React from 'react'; -import { Divider } from '@mui/material'; -import Paper from '@mui/material/Paper'; - import { ColorPicker } from './toolbar/ColorPicker'; import { EmojiPicker } from './toolbar/EmojiPicker'; import { InlineButtons } from './toolbar/InlineButtons'; diff --git a/src/components/activities/content/editors/TextEditor/toolbar/ColorPicker.tsx b/src/components/activities/content/editors/TextEditor/toolbar/ColorPicker.tsx index 46f001d83..0bf7f817c 100644 --- a/src/components/activities/content/editors/TextEditor/toolbar/ColorPicker.tsx +++ b/src/components/activities/content/editors/TextEditor/toolbar/ColorPicker.tsx @@ -1,10 +1,9 @@ -import React from 'react'; - import FormatColorTextIcon from '@mui/icons-material/FormatColorText'; import ClickAwayListener from '@mui/material/ClickAwayListener'; import Paper from '@mui/material/Paper'; import ToggleButton from '@mui/material/ToggleButton'; import ToggleButtonGroup from '@mui/material/ToggleButtonGroup'; +import React from 'react'; const colors = [ 'rgb(46, 52, 59)', diff --git a/src/components/activities/content/editors/TextEditor/toolbar/EmojiPicker.tsx b/src/components/activities/content/editors/TextEditor/toolbar/EmojiPicker.tsx index a2a2dbcff..15772ae82 100644 --- a/src/components/activities/content/editors/TextEditor/toolbar/EmojiPicker.tsx +++ b/src/components/activities/content/editors/TextEditor/toolbar/EmojiPicker.tsx @@ -1,10 +1,9 @@ -import React from 'react'; - import InsertEmoticonIcon from '@mui/icons-material/InsertEmoticon'; import ClickAwayListener from '@mui/material/ClickAwayListener'; import Paper from '@mui/material/Paper'; import ToggleButton from '@mui/material/ToggleButton'; import ToggleButtonGroup from '@mui/material/ToggleButtonGroup'; +import React from 'react'; const emojis = [ '😀', diff --git a/src/components/activities/content/editors/TextEditor/toolbar/InlineButtons.tsx b/src/components/activities/content/editors/TextEditor/toolbar/InlineButtons.tsx index f8fc5ba9d..0df18ae62 100644 --- a/src/components/activities/content/editors/TextEditor/toolbar/InlineButtons.tsx +++ b/src/components/activities/content/editors/TextEditor/toolbar/InlineButtons.tsx @@ -1,10 +1,9 @@ -import React from 'react'; - import FormatBoldIcon from '@mui/icons-material/FormatBold'; import FormatItalicIcon from '@mui/icons-material/FormatItalic'; import FormatUnderlinedIcon from '@mui/icons-material/FormatUnderlined'; import ToggleButton from '@mui/material/ToggleButton'; import ToggleButtonGroup from '@mui/material/ToggleButtonGroup'; +import React from 'react'; type InlineProps = { value: { diff --git a/src/components/activities/content/editors/TextEditor/toolbar/Link.tsx b/src/components/activities/content/editors/TextEditor/toolbar/Link.tsx index 3c18b4691..7a19522d2 100644 --- a/src/components/activities/content/editors/TextEditor/toolbar/Link.tsx +++ b/src/components/activities/content/editors/TextEditor/toolbar/Link.tsx @@ -1,13 +1,12 @@ -import type { ContentBlock, ContentState } from 'draft-js'; -import { RichUtils, EditorState, Modifier } from 'draft-js'; -import { getEntityRange, getSelectionEntity } from 'draftjs-utils'; -import React from 'react'; - import { TextField, Button } from '@mui/material'; import ClickAwayListener from '@mui/material/ClickAwayListener'; import Paper from '@mui/material/Paper'; import ToggleButton from '@mui/material/ToggleButton'; import ToggleButtonGroup from '@mui/material/ToggleButtonGroup'; +import { RichUtils, EditorState, Modifier } from 'draft-js'; +import type { ContentBlock, ContentState } from 'draft-js'; +import { getEntityRange, getSelectionEntity } from 'draftjs-utils'; +import React from 'react'; import { primaryColor } from 'src/styles/variables.const'; diff --git a/src/components/activities/content/editors/TextEditor/toolbar/TextAlignButtons.tsx b/src/components/activities/content/editors/TextEditor/toolbar/TextAlignButtons.tsx index ceeef7e75..e21e22970 100644 --- a/src/components/activities/content/editors/TextEditor/toolbar/TextAlignButtons.tsx +++ b/src/components/activities/content/editors/TextEditor/toolbar/TextAlignButtons.tsx @@ -1,10 +1,9 @@ -import React from 'react'; - import FormatAlignCenterIcon from '@mui/icons-material/FormatAlignCenter'; import FormatAlignLeftIcon from '@mui/icons-material/FormatAlignLeft'; import FormatAlignRightIcon from '@mui/icons-material/FormatAlignRight'; import ToggleButton from '@mui/material/ToggleButton'; import ToggleButtonGroup from '@mui/material/ToggleButtonGroup'; +import React from 'react'; type InlineProps = { value: 'left' | 'center' | 'right'; diff --git a/src/components/activities/content/editors/TextEditor/toolbar/TitleChoice.tsx b/src/components/activities/content/editors/TextEditor/toolbar/TitleChoice.tsx index f012bc875..48c457b94 100644 --- a/src/components/activities/content/editors/TextEditor/toolbar/TitleChoice.tsx +++ b/src/components/activities/content/editors/TextEditor/toolbar/TitleChoice.tsx @@ -1,7 +1,6 @@ -import React from 'react'; - import ToggleButton from '@mui/material/ToggleButton'; import ToggleButtonGroup from '@mui/material/ToggleButtonGroup'; +import React from 'react'; type TitleChoiceProps = { value: 'unstyle' | 'header-one' | 'header-two'; diff --git a/src/components/activities/content/editors/VideoEditor/VideoEditor.tsx b/src/components/activities/content/editors/VideoEditor/VideoEditor.tsx index 7fe3913a3..d4e348cbc 100644 --- a/src/components/activities/content/editors/VideoEditor/VideoEditor.tsx +++ b/src/components/activities/content/editors/VideoEditor/VideoEditor.tsx @@ -1,8 +1,7 @@ +import { Button } from '@mui/material'; import React from 'react'; import ReactPlayer from 'react-player'; -import { Button } from '@mui/material'; - import type { EditorProps } from '../../content.types'; import { EditorContainer } from '../EditorContainer'; import { VideoModals } from './VideoModals'; diff --git a/src/components/activities/content/editors/VideoEditor/VideoModals.tsx b/src/components/activities/content/editors/VideoEditor/VideoModals.tsx index 167ed29c2..813977c1a 100644 --- a/src/components/activities/content/editors/VideoEditor/VideoModals.tsx +++ b/src/components/activities/content/editors/VideoEditor/VideoModals.tsx @@ -1,14 +1,13 @@ +import CloudUploadIcon from '@mui/icons-material/CloudUpload'; +import SettingsIcon from '@mui/icons-material/Settings'; +import { Button, Divider, TextField } from '@mui/material'; +import Alert from '@mui/material/Alert'; import Link from 'next/link'; import { useSnackbar } from 'notistack'; import React from 'react'; import ReactPlayer from 'react-player'; import { useQueryClient } from 'react-query'; -import CloudUploadIcon from '@mui/icons-material/CloudUpload'; -import SettingsIcon from '@mui/icons-material/Settings'; -import { Button, Divider, TextField } from '@mui/material'; -import Alert from '@mui/material/Alert'; - import { Modal } from 'src/components/Modal'; import { useCopy } from 'src/hooks/useCopy'; import { defaultTextButtonStyle, fontDetailColor, bgPage } from 'src/styles/variables.const'; diff --git a/src/components/activities/content/views/SoundView.tsx b/src/components/activities/content/views/SoundView.tsx index 5912faf3e..e5cd007ed 100644 --- a/src/components/activities/content/views/SoundView.tsx +++ b/src/components/activities/content/views/SoundView.tsx @@ -1,6 +1,5 @@ -import React from 'react'; - import Alert from '@mui/material/Alert'; +import React from 'react'; import type { ViewProps } from '../content.types'; diff --git a/src/components/activities/content/views/VideoView/VideoView.tsx b/src/components/activities/content/views/VideoView/VideoView.tsx index 02ca521bc..be075aea2 100644 --- a/src/components/activities/content/views/VideoView/VideoView.tsx +++ b/src/components/activities/content/views/VideoView/VideoView.tsx @@ -1,9 +1,8 @@ +import { Button, CircularProgress } from '@mui/material'; import { useSnackbar } from 'notistack'; import React from 'react'; import ReactPlayer from 'react-player'; -import { Button, CircularProgress } from '@mui/material'; - import type { ViewProps } from '../../content.types'; import { KeepRatio } from 'src/components/KeepRatio'; import { serializeToQueryUrl } from 'src/utils'; diff --git a/src/components/admin/AdminHeader.tsx b/src/components/admin/AdminHeader.tsx index 2c41d1918..0a966665b 100644 --- a/src/components/admin/AdminHeader.tsx +++ b/src/components/admin/AdminHeader.tsx @@ -1,11 +1,10 @@ -import Link from 'next/link'; -import React from 'react'; - import { Button } from '@mui/material'; import AppBar from '@mui/material/AppBar'; import Toolbar from '@mui/material/Toolbar'; import Typography from '@mui/material/Typography'; import useScrollTrigger from '@mui/material/useScrollTrigger'; +import Link from 'next/link'; +import React from 'react'; import { defaultContainedButtonStyle } from 'src/styles/variables.const'; diff --git a/src/components/admin/AdminNavigation.tsx b/src/components/admin/AdminNavigation.tsx index 8570682cd..5fe87a60f 100644 --- a/src/components/admin/AdminNavigation.tsx +++ b/src/components/admin/AdminNavigation.tsx @@ -1,6 +1,3 @@ -import { useRouter } from 'next/router'; -import React from 'react'; - import GroupIcon from '@mui/icons-material/Group'; import InsertChartOutlinedOutlinedIcon from '@mui/icons-material/InsertChartOutlinedOutlined'; import LanguageIcon from '@mui/icons-material/Language'; @@ -14,6 +11,8 @@ import ListItem from '@mui/material/ListItem'; import ListItemIcon from '@mui/material/ListItemIcon'; import ListItemText from '@mui/material/ListItemText'; import Toolbar from '@mui/material/Toolbar'; +import { useRouter } from 'next/router'; +import React from 'react'; import { useIsH5pEnabled } from 'src/api/h5p/h5p-enabled'; diff --git a/src/components/admin/AdminTable.tsx b/src/components/admin/AdminTable.tsx index 26e0d773d..62677ed1f 100644 --- a/src/components/admin/AdminTable.tsx +++ b/src/components/admin/AdminTable.tsx @@ -1,5 +1,3 @@ -import React from 'react'; - import NoSsr from '@mui/material/NoSsr'; import Table from '@mui/material/Table'; import TableBody from '@mui/material/TableBody'; @@ -8,6 +6,7 @@ import TableHead from '@mui/material/TableHead'; import TablePagination from '@mui/material/TablePagination'; import TableRow from '@mui/material/TableRow'; import TableSortLabel from '@mui/material/TableSortLabel'; +import React from 'react'; function paginate(array: T[], pageSize: number, pageNumber: number): T[] { // human-readable page numbers usually start with 1, so we reduce 1 in the first argument diff --git a/src/components/admin/AdminTile.tsx b/src/components/admin/AdminTile.tsx index 47a407f93..e7aaf4978 100644 --- a/src/components/admin/AdminTile.tsx +++ b/src/components/admin/AdminTile.tsx @@ -1,8 +1,7 @@ -import React from 'react'; - import Paper from '@mui/material/Paper'; import Toolbar from '@mui/material/Toolbar'; import Typography from '@mui/material/Typography'; +import React from 'react'; interface AdminTileProps { title: string; diff --git a/src/components/admin/NewAdminHeader.tsx b/src/components/admin/NewAdminHeader.tsx index 52706cabf..9c50940c6 100644 --- a/src/components/admin/NewAdminHeader.tsx +++ b/src/components/admin/NewAdminHeader.tsx @@ -1,8 +1,7 @@ +import { Button, AppBar, Toolbar, Typography, useScrollTrigger } from '@mui/material'; import Link from 'next/link'; import React from 'react'; -import { Button, AppBar, Toolbar, Typography, useScrollTrigger } from '@mui/material'; - import { primaryColor } from 'src/styles/variables.const'; import Logo from 'src/svg/logo.svg'; diff --git a/src/components/admin/NewAdminNavigation.tsx b/src/components/admin/NewAdminNavigation.tsx index 2a363d1af..82f06b11e 100644 --- a/src/components/admin/NewAdminNavigation.tsx +++ b/src/components/admin/NewAdminNavigation.tsx @@ -1,9 +1,8 @@ +import { Container, List, ListItem, ListItemIcon, ListItemText } from '@mui/material'; import Link from 'next/link'; import { useRouter } from 'next/router'; import React from 'react'; -import { Container, List, ListItem, ListItemIcon, ListItemText } from '@mui/material'; - import { UserContext } from 'src/contexts/userContext'; import AnalyserIcon from 'src/svg/analyser.svg'; import CreerIcon from 'src/svg/creer.svg'; diff --git a/src/components/admin/analytics/BarWidget.tsx b/src/components/admin/analytics/BarWidget.tsx index d9bbb704d..6de392313 100644 --- a/src/components/admin/analytics/BarWidget.tsx +++ b/src/components/admin/analytics/BarWidget.tsx @@ -1,6 +1,5 @@ -import React from 'react'; - import { Tab, Tabs, Paper } from '@mui/material'; +import React from 'react'; import { primaryColorLight } from 'src/styles/variables.const'; diff --git a/src/components/admin/analytics/TimePicker.tsx b/src/components/admin/analytics/TimePicker.tsx index 552137fd9..a04860b52 100644 --- a/src/components/admin/analytics/TimePicker.tsx +++ b/src/components/admin/analytics/TimePicker.tsx @@ -1,9 +1,8 @@ -import React from 'react'; - import ChevronLeftIcon from '@mui/icons-material/ChevronLeft'; import ChevronRightIcon from '@mui/icons-material/ChevronRight'; import KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown'; import { ButtonGroup, Button, Menu, MenuItem, Divider } from '@mui/material'; +import React from 'react'; import { defaultOutlinedButtonStyle } from 'src/styles/variables.const'; import { capitalize } from 'src/utils'; diff --git a/src/components/admin/dashboard-statistics/cards/ClassesExchangesCard/ClassesExchangesCard.tsx b/src/components/admin/dashboard-statistics/cards/ClassesExchangesCard/ClassesExchangesCard.tsx index f1dfe70f4..3886c661f 100644 --- a/src/components/admin/dashboard-statistics/cards/ClassesExchangesCard/ClassesExchangesCard.tsx +++ b/src/components/admin/dashboard-statistics/cards/ClassesExchangesCard/ClassesExchangesCard.tsx @@ -1,9 +1,8 @@ -import classNames from 'classnames'; -import React from 'react'; - import ChatBubbleOutlineIcon from '@mui/icons-material/ChatBubbleOutline'; import DescriptionIcon from '@mui/icons-material/Description'; import YouTubeIcon from '@mui/icons-material/YouTube'; +import classNames from 'classnames'; +import React from 'react'; import styles from './ClassesExchangesCard.module.css'; diff --git a/src/components/admin/dashboard-statistics/cards/CommentCard/CommentCard.tsx b/src/components/admin/dashboard-statistics/cards/CommentCard/CommentCard.tsx index b7f340a85..b4bd78bce 100644 --- a/src/components/admin/dashboard-statistics/cards/CommentCard/CommentCard.tsx +++ b/src/components/admin/dashboard-statistics/cards/CommentCard/CommentCard.tsx @@ -1,6 +1,5 @@ -import React from 'react'; - import EditIcon from '@mui/icons-material/Edit'; // Assurez-vous que ce package est installé ou utilisez une autre icône. +import React from 'react'; import styles from './CommentCard.module.css'; diff --git a/src/components/admin/dashboard-statistics/charts/BarCharts.tsx b/src/components/admin/dashboard-statistics/charts/BarCharts.tsx index 12bac8635..aa0260136 100644 --- a/src/components/admin/dashboard-statistics/charts/BarCharts.tsx +++ b/src/components/admin/dashboard-statistics/charts/BarCharts.tsx @@ -1,8 +1,7 @@ +import { BarChart } from '@mui/x-charts/BarChart'; import classNames from 'classnames'; import React, { useState } from 'react'; -import { BarChart } from '@mui/x-charts/BarChart'; - import styles from '../styles/charts.module.css'; interface Props { diff --git a/src/components/admin/dashboard-statistics/charts/PieCharts.tsx b/src/components/admin/dashboard-statistics/charts/PieCharts.tsx index 15caecef5..cb50e92d2 100644 --- a/src/components/admin/dashboard-statistics/charts/PieCharts.tsx +++ b/src/components/admin/dashboard-statistics/charts/PieCharts.tsx @@ -1,8 +1,7 @@ +import { PieChart } from '@mui/x-charts/PieChart'; import classNames from 'classnames'; import React from 'react'; -import { PieChart } from '@mui/x-charts/PieChart'; - import styles from '../styles/charts.module.css'; type PieChartDataItem = { diff --git a/src/components/admin/dashboard-statistics/filters/PhaseDropdown.tsx b/src/components/admin/dashboard-statistics/filters/PhaseDropdown.tsx index 787560ba9..6fd4f5033 100644 --- a/src/components/admin/dashboard-statistics/filters/PhaseDropdown.tsx +++ b/src/components/admin/dashboard-statistics/filters/PhaseDropdown.tsx @@ -1,11 +1,10 @@ -import * as React from 'react'; - import Box from '@mui/material/Box'; import FormControl from '@mui/material/FormControl'; import InputLabel from '@mui/material/InputLabel'; import MenuItem from '@mui/material/MenuItem'; import type { SelectChangeEvent } from '@mui/material/Select'; import Select from '@mui/material/Select'; +import * as React from 'react'; export default function PhaseDropdown() { const [phase, setPhase] = React.useState(''); diff --git a/src/components/admin/dashboard-statistics/map/DashboardWorldMap/DashboardWorldMap.tsx b/src/components/admin/dashboard-statistics/map/DashboardWorldMap/DashboardWorldMap.tsx index cc42de7b7..d5c4ff13f 100644 --- a/src/components/admin/dashboard-statistics/map/DashboardWorldMap/DashboardWorldMap.tsx +++ b/src/components/admin/dashboard-statistics/map/DashboardWorldMap/DashboardWorldMap.tsx @@ -1,8 +1,7 @@ +import CircleIcon from '@mui/icons-material/Circle'; import React from 'react'; import { ComposableMap, Geographies, Geography, ZoomableGroup } from 'react-simple-maps'; -import CircleIcon from '@mui/icons-material/Circle'; - import TooltipMouseTracker from '../TooltipMouseTracker/TooltipMouseTracker'; import styles from './DashboardWorldMap.module.css'; diff --git a/src/components/admin/dashboard-statistics/menu/PhaseDetails.tsx b/src/components/admin/dashboard-statistics/menu/PhaseDetails.tsx index 47a818ef8..ac9ce9a05 100644 --- a/src/components/admin/dashboard-statistics/menu/PhaseDetails.tsx +++ b/src/components/admin/dashboard-statistics/menu/PhaseDetails.tsx @@ -1,6 +1,3 @@ -import * as React from 'react'; -import { useState } from 'react'; - import KeyboardArrowUpIcon from '@mui/icons-material/KeyboardArrowUp'; import { Accordion, @@ -14,6 +11,8 @@ import { TableRow, TableSortLabel, } from '@mui/material'; +import * as React from 'react'; +import { useState } from 'react'; import ArrowRight from 'src/svg/arrow-right.svg'; diff --git a/src/components/admin/dashboard-statistics/nav/DashboardTabs.tsx b/src/components/admin/dashboard-statistics/nav/DashboardTabs.tsx index 050108f81..268598957 100644 --- a/src/components/admin/dashboard-statistics/nav/DashboardTabs.tsx +++ b/src/components/admin/dashboard-statistics/nav/DashboardTabs.tsx @@ -1,9 +1,8 @@ -import React from 'react'; - import Box from '@mui/material/Box'; import Tab from '@mui/material/Tab'; import Tabs from '@mui/material/Tabs'; import Typography from '@mui/material/Typography'; +import React from 'react'; interface TabPanelProps { children?: React.ReactNode; diff --git a/src/components/admin/mediatheque/CardMediatheque.tsx b/src/components/admin/mediatheque/CardMediatheque.tsx index 6ac9b5411..1733342f2 100644 --- a/src/components/admin/mediatheque/CardMediatheque.tsx +++ b/src/components/admin/mediatheque/CardMediatheque.tsx @@ -1,10 +1,9 @@ -import React, { useContext } from 'react'; - import { Grid } from '@mui/material'; import Card from '@mui/material/Card'; import CardContent from '@mui/material/CardContent'; import CardMedia from '@mui/material/CardMedia'; import Typography from '@mui/material/Typography'; +import React, { useContext } from 'react'; import DownloadButton from 'src/components/admin/mediatheque/DownloadButton'; import { MediaCarousel } from 'src/components/admin/mediatheque/MediaCarousel'; diff --git a/src/components/admin/mediatheque/CheckboxAdmin.tsx b/src/components/admin/mediatheque/CheckboxAdmin.tsx index e29211713..6e748e7a2 100644 --- a/src/components/admin/mediatheque/CheckboxAdmin.tsx +++ b/src/components/admin/mediatheque/CheckboxAdmin.tsx @@ -1,6 +1,5 @@ -import React, { useContext } from 'react'; - import Checkbox from '@mui/material/Checkbox'; +import React, { useContext } from 'react'; import MediathequeContext from 'src/contexts/mediathequeContext'; import PelicoNeutre from 'src/svg/pelico/pelico_neutre.svg'; diff --git a/src/components/admin/mediatheque/DownloadButton.tsx b/src/components/admin/mediatheque/DownloadButton.tsx index a72b11df1..f02043821 100644 --- a/src/components/admin/mediatheque/DownloadButton.tsx +++ b/src/components/admin/mediatheque/DownloadButton.tsx @@ -1,12 +1,11 @@ -import { saveAs } from 'file-saver'; -import JSZip from 'jszip'; -import { useSnackbar } from 'notistack'; -import React, { useState } from 'react'; - import SaveAltIcon from '@mui/icons-material/SaveAlt'; import Box from '@mui/material/Box'; import Button from '@mui/material/Button'; import CircularProgress from '@mui/material/CircularProgress'; +import { saveAs } from 'file-saver'; +import JSZip from 'jszip'; +import { useSnackbar } from 'notistack'; +import React, { useState } from 'react'; import { subThemesMap, activityNumberMapper, subThemeNumberMapper } from 'src/config/mediatheque/dataFilters'; import { serializeToQueryUrl } from 'src/utils'; diff --git a/src/components/admin/mediatheque/Filter.tsx b/src/components/admin/mediatheque/Filter.tsx index 2fbddc008..067803e8d 100644 --- a/src/components/admin/mediatheque/Filter.tsx +++ b/src/components/admin/mediatheque/Filter.tsx @@ -1,5 +1,3 @@ -import React from 'react'; - import FormControl from '@mui/material/FormControl'; import MenuItem from '@mui/material/MenuItem'; import OutlinedInput from '@mui/material/OutlinedInput'; @@ -8,6 +6,7 @@ import Select from '@mui/material/Select'; import Tooltip from '@mui/material/Tooltip'; import { useTheme } from '@mui/material/styles'; import type { Theme } from '@mui/material/styles'; +import React from 'react'; const ITEM_HEIGHT = 48; const ITEM_PADDING_TOP = 8; diff --git a/src/components/admin/mediatheque/FiltersActivities.tsx b/src/components/admin/mediatheque/FiltersActivities.tsx index 0aeb94c44..afd446c27 100644 --- a/src/components/admin/mediatheque/FiltersActivities.tsx +++ b/src/components/admin/mediatheque/FiltersActivities.tsx @@ -1,6 +1,3 @@ -import React, { useEffect, useState, useContext, useCallback, useMemo } from 'react'; -import { countries } from 'server/utils/iso-3166-countries-french'; - import FormControl from '@mui/material/FormControl'; import MenuItem from '@mui/material/MenuItem'; import OutlinedInput from '@mui/material/OutlinedInput'; @@ -8,6 +5,8 @@ import type { SelectChangeEvent } from '@mui/material/Select'; import Select from '@mui/material/Select'; import { useTheme } from '@mui/material/styles'; import type { Theme } from '@mui/material/styles'; +import React, { useEffect, useState, useContext, useCallback, useMemo } from 'react'; +import { countries } from 'server/utils/iso-3166-countries-french'; import { activitiesLabel, activityNumberMapper, subThemesMap, subThemeNumberMapper } from 'src/config/mediatheque/dataFilters'; import type { UserData } from 'src/contexts/mediathequeContext'; diff --git a/src/components/admin/mediatheque/MediaCarousel.tsx b/src/components/admin/mediatheque/MediaCarousel.tsx index c254f3490..32430d4b9 100644 --- a/src/components/admin/mediatheque/MediaCarousel.tsx +++ b/src/components/admin/mediatheque/MediaCarousel.tsx @@ -1,9 +1,8 @@ -import React, { useState } from 'react'; - import NavigateBeforeIcon from '@mui/icons-material/NavigateBefore'; import NavigateNextIcon from '@mui/icons-material/NavigateNext'; import Button from '@mui/material/Button'; import CardMedia from '@mui/material/CardMedia'; +import React, { useState } from 'react'; type Item = { type: string; diff --git a/src/components/admin/mediatheque/ModalFilter.tsx b/src/components/admin/mediatheque/ModalFilter.tsx index 6fdf105ab..ce5ac3972 100644 --- a/src/components/admin/mediatheque/ModalFilter.tsx +++ b/src/components/admin/mediatheque/ModalFilter.tsx @@ -1,10 +1,9 @@ -import React, { useContext, useState } from 'react'; - import RefreshIcon from '@mui/icons-material/Refresh'; import Box from '@mui/material/Box'; import Button from '@mui/material/Button'; import IconButton from '@mui/material/IconButton'; import Modal from '@mui/material/Modal'; +import React, { useContext, useState } from 'react'; import FiltersActivities from './FiltersActivities'; import CheckboxAdmin from 'src/components/admin/mediatheque/CheckboxAdmin'; diff --git a/src/components/audio/AudioMixer/AudioMixer.tsx b/src/components/audio/AudioMixer/AudioMixer.tsx index c37760507..a0a3df190 100644 --- a/src/components/audio/AudioMixer/AudioMixer.tsx +++ b/src/components/audio/AudioMixer/AudioMixer.tsx @@ -1,6 +1,5 @@ -import React from 'react'; - import { Button } from '@mui/material'; +import React from 'react'; import AudioMixerTrackControl from '../AudioMixerTrackControls/AudioMixerTrackControl'; import styles from './AudioMixer.module.css'; diff --git a/src/components/audio/AudioMixerTrackControls/AudioMixerTrackControl.tsx b/src/components/audio/AudioMixerTrackControls/AudioMixerTrackControl.tsx index 7a159f850..e600c8a84 100644 --- a/src/components/audio/AudioMixerTrackControls/AudioMixerTrackControl.tsx +++ b/src/components/audio/AudioMixerTrackControls/AudioMixerTrackControl.tsx @@ -1,7 +1,6 @@ -import React from 'react'; - import InfoOutlinedIcon from '@mui/icons-material/InfoOutlined'; import { Slider, Tooltip } from '@mui/material'; +import React from 'react'; import type { AudioMixerTrack } from '../AudioMixer/AudioMixer'; import styles from './AudioMixerTrackControl.module.css'; diff --git a/src/components/audio/AudioPlayer/AudioPlayer.tsx b/src/components/audio/AudioPlayer/AudioPlayer.tsx index 409ef0766..2cee651d6 100644 --- a/src/components/audio/AudioPlayer/AudioPlayer.tsx +++ b/src/components/audio/AudioPlayer/AudioPlayer.tsx @@ -1,8 +1,7 @@ +import { Alert, CircularProgress } from '@mui/material'; import * as React from 'react'; import { useQuery } from 'react-query'; -import { Alert, CircularProgress } from '@mui/material'; - import { primaryColor } from 'src/styles/variables.const'; import { axiosRequest } from 'src/utils/axiosRequest'; diff --git a/src/components/audio/DraggableTrack.tsx b/src/components/audio/DraggableTrack.tsx index 56a614d30..39e6ab9b9 100644 --- a/src/components/audio/DraggableTrack.tsx +++ b/src/components/audio/DraggableTrack.tsx @@ -1,7 +1,6 @@ -import React from 'react'; - import MicNoneIcon from '@mui/icons-material/MicNone'; import MusicNoteIcon from '@mui/icons-material/MusicNote'; +import React from 'react'; import { useDragHandler } from 'src/hooks/useDragHandler'; import { clamp } from 'src/utils'; diff --git a/src/components/audio/VolumeControls/VolumeControl.tsx b/src/components/audio/VolumeControls/VolumeControl.tsx index 270d22447..e849d6be3 100644 --- a/src/components/audio/VolumeControls/VolumeControl.tsx +++ b/src/components/audio/VolumeControls/VolumeControl.tsx @@ -1,9 +1,8 @@ -import type { ReactElement } from 'react'; -import React from 'react'; - import VolumeUp from '@mui/icons-material/VolumeUp'; import Slider from '@mui/material/Slider'; import Stack from '@mui/material/Stack'; +import React from 'react'; +import type { ReactElement } from 'react'; interface VolumeControlProps { icon?: ReactElement; diff --git a/src/components/buttons/AddAudioButton.tsx b/src/components/buttons/AddAudioButton.tsx index a7d50abf0..b1cf89cf2 100644 --- a/src/components/buttons/AddAudioButton.tsx +++ b/src/components/buttons/AddAudioButton.tsx @@ -1,7 +1,6 @@ -import React from 'react'; - import Add from '@mui/icons-material/Add'; import { Button } from '@mui/material'; +import React from 'react'; interface AddAudioButtonProps { onClick: () => void; diff --git a/src/components/buttons/CustomRadio.tsx b/src/components/buttons/CustomRadio.tsx index 3e8af37ce..a5c7af1bf 100644 --- a/src/components/buttons/CustomRadio.tsx +++ b/src/components/buttons/CustomRadio.tsx @@ -1,7 +1,6 @@ -import * as React from 'react'; - import FiberManualRecordIcon from '@mui/icons-material/FiberManualRecord'; import { Radio } from '@mui/material'; +import * as React from 'react'; import { errorColor, successColor } from 'src/styles/variables.const'; diff --git a/src/components/buttons/DeleteButton.tsx b/src/components/buttons/DeleteButton.tsx index 5b0b57845..82a09af8b 100644 --- a/src/components/buttons/DeleteButton.tsx +++ b/src/components/buttons/DeleteButton.tsx @@ -1,8 +1,7 @@ -import React from 'react'; - import DeleteIcon from '@mui/icons-material/Delete'; import IconButton from '@mui/material/IconButton'; import type { Theme } from '@mui/material/styles'; +import React from 'react'; import { Modal } from 'src/components/Modal'; diff --git a/src/components/buttons/EditButton.tsx b/src/components/buttons/EditButton.tsx index 01a4bc10b..10ede9c4d 100644 --- a/src/components/buttons/EditButton.tsx +++ b/src/components/buttons/EditButton.tsx @@ -1,10 +1,9 @@ -import React from 'react'; - import EditIcon from '@mui/icons-material/Edit'; import type { ButtonProps } from '@mui/material'; import IconButton from '@mui/material/IconButton'; import Tooltip from '@mui/material/Tooltip'; import type { Theme } from '@mui/material/styles'; +import React from 'react'; import { successColor, errorColor, warningColor } from 'src/styles/variables.const'; diff --git a/src/components/buttons/GameResponseButton.tsx b/src/components/buttons/GameResponseButton.tsx index 520c2a9cc..b4704b6e1 100644 --- a/src/components/buttons/GameResponseButton.tsx +++ b/src/components/buttons/GameResponseButton.tsx @@ -1,6 +1,5 @@ -import React, { useState, useCallback } from 'react'; - import { Button, Stack, Typography } from '@mui/material'; +import React, { useState, useCallback } from 'react'; import ArrowRight from 'src/svg/arrow-right.svg'; diff --git a/src/components/buttons/HelpButton.tsx b/src/components/buttons/HelpButton.tsx index e62c49967..28c622d89 100644 --- a/src/components/buttons/HelpButton.tsx +++ b/src/components/buttons/HelpButton.tsx @@ -1,7 +1,6 @@ -import React from 'react'; - import type { ButtonProps } from '@mui/material'; import Button from '@mui/material/Button'; +import React from 'react'; import { helpColor, helpColorDarker } from 'src/styles/variables.const'; import PelicoSearch from 'src/svg/pelico/pelico-search.svg'; diff --git a/src/components/buttons/QuestionButton.tsx b/src/components/buttons/QuestionButton.tsx index 260e23556..e8bf0bb0e 100644 --- a/src/components/buttons/QuestionButton.tsx +++ b/src/components/buttons/QuestionButton.tsx @@ -1,7 +1,6 @@ -import React from 'react'; - import HelpIcon from '@mui/icons-material/Help'; import Popover from '@mui/material/Popover'; +import React from 'react'; interface QuestionButtonProps { helpMessage: string | React.ReactNode | React.ReactNodeArray; diff --git a/src/components/buttons/RedButton.tsx b/src/components/buttons/RedButton.tsx index 00c629a12..8ebaed67a 100644 --- a/src/components/buttons/RedButton.tsx +++ b/src/components/buttons/RedButton.tsx @@ -1,7 +1,6 @@ -import * as React from 'react'; - import type { ButtonProps } from '@mui/material/Button'; import Button from '@mui/material/Button'; +import * as React from 'react'; import { errorColor, errorColorDarker } from 'src/styles/variables.const'; diff --git a/src/components/buttons/ThemeChoiceButton.tsx b/src/components/buttons/ThemeChoiceButton.tsx index d179e55cf..5a14559b3 100644 --- a/src/components/buttons/ThemeChoiceButton.tsx +++ b/src/components/buttons/ThemeChoiceButton.tsx @@ -1,6 +1,5 @@ -import React from 'react'; - import { Box, ButtonBase } from '@mui/material'; +import React from 'react'; import ArrowRight from 'src/svg/arrow-right.svg'; diff --git a/src/components/game/DisplayGameById.tsx b/src/components/game/DisplayGameById.tsx index f9a7cf5fb..2dd2ac027 100644 --- a/src/components/game/DisplayGameById.tsx +++ b/src/components/game/DisplayGameById.tsx @@ -1,3 +1,5 @@ +import ArrowBackIcon from '@mui/icons-material/ArrowBack'; +import { Box, Button, Grid } from '@mui/material'; import Image from 'next/image'; import Link from 'next/link'; import { useRouter } from 'next/router'; @@ -5,8 +7,6 @@ import React, { useState, useCallback, useMemo, useContext } from 'react'; // import AccessTimeIcon from '@mui/icons-material/AccessTime'; // import ShuffleIcon from '@mui/icons-material/Shuffle'; -import ArrowBackIcon from '@mui/icons-material/ArrowBack'; -import { Box, Button, Grid } from '@mui/material'; import { KeepRatio } from '../KeepRatio'; import { useOneGameById } from 'src/api/game/game.getOneGameById'; diff --git a/src/components/game/List.tsx b/src/components/game/List.tsx index d5c22cfa1..34b99785e 100644 --- a/src/components/game/List.tsx +++ b/src/components/game/List.tsx @@ -1,12 +1,11 @@ -import React from 'react'; -import ReactPlayer from 'react-player'; - import { Grid, Link } from '@mui/material'; import Button from '@mui/material/Button'; import Card from '@mui/material/Card'; import CardMedia from '@mui/material/CardMedia'; import ImageListItem from '@mui/material/ImageListItem'; import ImageListItemBar from '@mui/material/ImageListItemBar'; +import React from 'react'; +import ReactPlayer from 'react-player'; import { useAllStandardGameByType } from 'src/api/game/game.getAllBySubtype'; import { useAbleToPlayStandardGame } from 'src/api/game/game.getAvailable'; diff --git a/src/components/game/Play.tsx b/src/components/game/Play.tsx index 842bea521..1c43e1e06 100644 --- a/src/components/game/Play.tsx +++ b/src/components/game/Play.tsx @@ -1,5 +1,3 @@ -import React from 'react'; - // import { Grid } from '@mui/material'; import FormControl from '@mui/material/FormControl'; import FormControlLabel from '@mui/material/FormControlLabel'; @@ -8,6 +6,7 @@ import Radio from '@mui/material/Radio'; import RadioGroup from '@mui/material/RadioGroup'; import Select from '@mui/material/Select'; import TextField from '@mui/material/TextField'; +import React from 'react'; import { GAME_FIELDS_CONFIG } from 'src/config/games/game'; import { InputTypeEnum } from 'types/game.type'; diff --git a/src/components/game/Previsualisation.tsx b/src/components/game/Previsualisation.tsx index a855afce2..fb4e0d966 100644 --- a/src/components/game/Previsualisation.tsx +++ b/src/components/game/Previsualisation.tsx @@ -1,10 +1,9 @@ +import { FormControlLabel, Grid, Radio, RadioGroup } from '@mui/material'; import Image from 'next/image'; import router from 'next/router'; import React, { useContext } from 'react'; import ReactPlayer from 'react-player'; -import { FormControlLabel, Grid, Radio, RadioGroup } from '@mui/material'; - import { CustomRadio } from '../buttons/CustomRadio'; import { EditButton } from '../buttons/EditButton'; import { GameContext } from 'src/contexts/gameContext'; diff --git a/src/components/game/componentGameMapping/GameField.tsx b/src/components/game/componentGameMapping/GameField.tsx index 9e8c62581..1cf7cd9bc 100644 --- a/src/components/game/componentGameMapping/GameField.tsx +++ b/src/components/game/componentGameMapping/GameField.tsx @@ -1,6 +1,5 @@ -import React, { useContext, useState } from 'react'; - import { TextField } from '@mui/material'; +import React, { useContext, useState } from 'react'; import { GameContext } from 'src/contexts/gameContext'; import type { inputType } from 'types/game.type'; diff --git a/src/components/game/componentGameMapping/GameMedia.tsx b/src/components/game/componentGameMapping/GameMedia.tsx index c9853a633..3866d9885 100644 --- a/src/components/game/componentGameMapping/GameMedia.tsx +++ b/src/components/game/componentGameMapping/GameMedia.tsx @@ -1,10 +1,9 @@ +import AddIcon from '@mui/icons-material/Add'; +import { ButtonBase } from '@mui/material'; import Image from 'next/image'; import React, { useContext } from 'react'; import ReactPlayer from 'react-player'; -import AddIcon from '@mui/icons-material/Add'; -import { ButtonBase } from '@mui/material'; - import { KeepRatio } from 'src/components/KeepRatio'; import { ImageModal } from 'src/components/activities/content/editors/ImageEditor/ImageModal'; import { VideoModals } from 'src/components/activities/content/editors/VideoEditor/VideoModals'; diff --git a/src/components/game/componentGameMapping/GameRadio.tsx b/src/components/game/componentGameMapping/GameRadio.tsx index d6bb12400..7fc50ea5c 100644 --- a/src/components/game/componentGameMapping/GameRadio.tsx +++ b/src/components/game/componentGameMapping/GameRadio.tsx @@ -1,6 +1,5 @@ -import React, { useContext } from 'react'; - import { RadioGroup, Radio, FormControlLabel } from '@mui/material'; +import React, { useContext } from 'react'; import { GameContext } from 'src/contexts/gameContext'; import type { inputType } from 'types/game.type'; diff --git a/src/components/game/componentGameMapping/GameSelect.tsx b/src/components/game/componentGameMapping/GameSelect.tsx index 16f762f6c..801c83990 100644 --- a/src/components/game/componentGameMapping/GameSelect.tsx +++ b/src/components/game/componentGameMapping/GameSelect.tsx @@ -1,6 +1,5 @@ -import React, { useContext, useEffect, useState } from 'react'; - import { Autocomplete, FormControl, TextField } from '@mui/material'; +import React, { useContext, useEffect, useState } from 'react'; import { SelectTypeMappingMethode, keyMapping } from 'src/config/games/game'; import { GameContext } from 'src/contexts/gameContext'; diff --git a/src/components/h5p/H5pEditor.tsx b/src/components/h5p/H5pEditor.tsx index 5d2dc5a05..b38249fd0 100644 --- a/src/components/h5p/H5pEditor.tsx +++ b/src/components/h5p/H5pEditor.tsx @@ -1,7 +1,6 @@ import { H5PEditorUI } from '@lumieducation/h5p-react'; -import * as React from 'react'; - import { Button } from '@mui/material'; +import * as React from 'react'; import { getH5pContent } from 'src/api/h5p/h5p-content.get'; import { patchH5pContent } from 'src/api/h5p/h5p-content.patch'; diff --git a/src/components/mon-compte/PanelInput.tsx b/src/components/mon-compte/PanelInput.tsx index e9be8eaa6..6453e8714 100644 --- a/src/components/mon-compte/PanelInput.tsx +++ b/src/components/mon-compte/PanelInput.tsx @@ -1,8 +1,7 @@ +import TextField from '@mui/material/TextField'; import type { CSSProperties } from 'react'; import React from 'react'; -import TextField from '@mui/material/TextField'; - interface PanelInputProps { value: string | undefined; defaultValue?: string; diff --git a/src/components/selectors/CountrySelector.tsx b/src/components/selectors/CountrySelector.tsx index c8072bc73..832a7ba61 100644 --- a/src/components/selectors/CountrySelector.tsx +++ b/src/components/selectors/CountrySelector.tsx @@ -1,8 +1,7 @@ -import React from 'react'; - import { Box } from '@mui/material'; import Autocomplete from '@mui/material/Autocomplete'; import TextField from '@mui/material/TextField'; +import React from 'react'; import { useCountries } from 'src/services/useCountries'; import { countryToFlag } from 'src/utils'; diff --git a/src/components/selectors/LanguageSelector.tsx b/src/components/selectors/LanguageSelector.tsx index 173a5b8fc..b09e49ead 100644 --- a/src/components/selectors/LanguageSelector.tsx +++ b/src/components/selectors/LanguageSelector.tsx @@ -1,8 +1,7 @@ -import React from 'react'; - import { Box } from '@mui/material'; import Autocomplete from '@mui/material/Autocomplete'; import TextField from '@mui/material/TextField'; +import React from 'react'; import { useLanguages } from 'src/services/useLanguages'; import type { Language } from 'types/language.type'; diff --git a/src/components/selectors/MimicSelector.tsx b/src/components/selectors/MimicSelector.tsx index 0bb0e867a..7315b529e 100644 --- a/src/components/selectors/MimicSelector.tsx +++ b/src/components/selectors/MimicSelector.tsx @@ -1,9 +1,8 @@ +import { TextField, Grid, Button } from '@mui/material'; import type { ChangeEventHandler } from 'react'; import React from 'react'; import ReactPlayer from 'react-player'; -import { TextField, Grid, Button } from '@mui/material'; - import { Base } from 'src/components/Base'; import { StepsButton } from 'src/components/StepsButtons'; import { VideoModals } from 'src/components/activities/content/editors/VideoEditor/VideoModals'; diff --git a/src/components/selectors/MultipleCountrySelector.tsx b/src/components/selectors/MultipleCountrySelector.tsx index a95920ab1..fcf9991c9 100644 --- a/src/components/selectors/MultipleCountrySelector.tsx +++ b/src/components/selectors/MultipleCountrySelector.tsx @@ -1,7 +1,6 @@ -import React from 'react'; - import Autocomplete from '@mui/material/Autocomplete'; import TextField from '@mui/material/TextField'; +import React from 'react'; import { useCountries } from 'src/services/useCountries'; import type { Country } from 'types/country.type'; diff --git a/src/components/selectors/MultipleCurrencySelector.tsx b/src/components/selectors/MultipleCurrencySelector.tsx index 4069a41dc..84f3b1d16 100644 --- a/src/components/selectors/MultipleCurrencySelector.tsx +++ b/src/components/selectors/MultipleCurrencySelector.tsx @@ -1,7 +1,6 @@ -import React from 'react'; - import Autocomplete from '@mui/material/Autocomplete'; import TextField from '@mui/material/TextField'; +import React from 'react'; import { useCurrencies } from 'src/services/useCurrencies'; import type { Currency } from 'types/currency.type'; diff --git a/src/components/selectors/MultipleLanguageSelector.tsx b/src/components/selectors/MultipleLanguageSelector.tsx index aef40877f..b02b395df 100644 --- a/src/components/selectors/MultipleLanguageSelector.tsx +++ b/src/components/selectors/MultipleLanguageSelector.tsx @@ -1,7 +1,6 @@ -import React from 'react'; - import Autocomplete from '@mui/material/Autocomplete'; import TextField from '@mui/material/TextField'; +import React from 'react'; import { useLanguages } from 'src/services/useLanguages'; import type { Language } from 'types/language.type'; diff --git a/src/components/storyPictureWheel/storyPictureWheel.tsx b/src/components/storyPictureWheel/storyPictureWheel.tsx index c62824a68..8c6bc66e0 100644 --- a/src/components/storyPictureWheel/storyPictureWheel.tsx +++ b/src/components/storyPictureWheel/storyPictureWheel.tsx @@ -1,9 +1,8 @@ -import classNames from 'classnames'; -import React from 'react'; - import { Grid, Typography, CardMedia, Tooltip } from '@mui/material'; import Box from '@mui/material/Box'; import Paper from '@mui/material/Paper'; +import classNames from 'classnames'; +import React from 'react'; import { useImageStories } from 'src/services/useImagesStory'; import SlotMachineHandle from 'src/svg/story-activity/slot-machine-handle.svg'; diff --git a/src/components/table/CollapsibleTable.tsx b/src/components/table/CollapsibleTable.tsx index 1bfbd5762..7e9ae0266 100644 --- a/src/components/table/CollapsibleTable.tsx +++ b/src/components/table/CollapsibleTable.tsx @@ -1,7 +1,5 @@ // import KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown'; // import KeyboardArrowUpIcon from '@mui/icons-material/KeyboardArrowUp'; -import { useContext, useEffect, useState } from 'react'; -import * as React from 'react'; import { Button, Checkbox } from '@mui/material'; import Box from '@mui/material/Box'; @@ -14,6 +12,8 @@ import TableCell from '@mui/material/TableCell'; import TableContainer from '@mui/material/TableContainer'; import TableHead from '@mui/material/TableHead'; import TableRow from '@mui/material/TableRow'; +import * as React from 'react'; +import { useContext, useEffect, useState } from 'react'; // import { DeleteButton } from '../buttons/DeleteButton'; // import { deleteUserStudentRelation } from 'src/api/student/student.delete';