diff --git a/client/src/components/ApplicationData/ApplicationData.tsx b/client/src/components/ApplicationData/ApplicationData.tsx index 0b5fffac..c15ccc5c 100644 --- a/client/src/components/ApplicationData/ApplicationData.tsx +++ b/client/src/components/ApplicationData/ApplicationData.tsx @@ -1,5 +1,5 @@ import { IApplication } from '../../requests/responses/application' -import { Stack, Group, Divider, Grid, Title, Badge, Accordion } from '@mantine/core' +import { Stack, Group, Grid, Title, Badge, Accordion } from '@mantine/core' import AuthenticatedFilePreview from '../AuthenticatedFilePreview/AuthenticatedFilePreview' import React, { ReactNode } from 'react' import { GLOBAL_CONFIG } from '../../config/global' @@ -14,7 +14,6 @@ import LabeledItem from '../LabeledItem/LabeledItem' import DocumentEditor from '../DocumentEditor/DocumentEditor' import { ApplicationStateColor } from '../../config/colors' import TopicAccordionItem from '../TopicAccordionItem/TopicAccordionItem' -import AvatarUser from '../AvatarUser/AvatarUser' import { enrollmentDateToSemester } from '../../utils/converter' interface IApplicationDataProps { diff --git a/client/src/components/ApplicationRejectButton/ApplicationRejectButton.tsx b/client/src/components/ApplicationRejectButton/ApplicationRejectButton.tsx index 8aad6b63..76c3db5b 100644 --- a/client/src/components/ApplicationRejectButton/ApplicationRejectButton.tsx +++ b/client/src/components/ApplicationRejectButton/ApplicationRejectButton.tsx @@ -1,7 +1,7 @@ import { doRequest } from '../../requests/request' import { ApplicationState, IApplication } from '../../requests/responses/application' import { showSimpleError, showSimpleSuccess } from '../../utils/notification' -import { Button, Checkbox, Modal, Radio, Select, Stack, Text } from '@mantine/core' +import { Button, Checkbox, Modal, Radio, Stack, Text } from '@mantine/core' import React, { useEffect, useState } from 'react' import { ButtonProps } from '@mantine/core/lib/components/Button/Button' import { useApplicationsContextUpdater } from '../../contexts/ApplicationsProvider/hooks' diff --git a/client/src/components/ApplicationReviewForm/ApplicationReviewForm.tsx b/client/src/components/ApplicationReviewForm/ApplicationReviewForm.tsx index ef82c13e..ce900c6d 100644 --- a/client/src/components/ApplicationReviewForm/ApplicationReviewForm.tsx +++ b/client/src/components/ApplicationReviewForm/ApplicationReviewForm.tsx @@ -5,7 +5,18 @@ import { GLOBAL_CONFIG } from '../../config/global' import React, { useEffect, useState } from 'react' import { useDebouncedValue } from '@mantine/hooks' import { doRequest } from '../../requests/request' -import { Button, Checkbox, Divider, Group, Select, Space, Stack, Text, Textarea, TextInput } from '@mantine/core' +import { + Button, + Checkbox, + Divider, + Group, + Select, + Space, + Stack, + Text, + Textarea, + TextInput, +} from '@mantine/core' import UserMultiSelect from '../UserMultiSelect/UserMultiSelect' import { isNotEmptyUserList } from '../../utils/validation' import { showSimpleError, showSimpleSuccess } from '../../utils/notification' diff --git a/client/src/contexts/ThesisProvider/ThesisProvider.tsx b/client/src/contexts/ThesisProvider/ThesisProvider.tsx index 3ba7abdb..c2c48c21 100644 --- a/client/src/contexts/ThesisProvider/ThesisProvider.tsx +++ b/client/src/contexts/ThesisProvider/ThesisProvider.tsx @@ -2,7 +2,6 @@ import React, { PropsWithChildren, useEffect, useMemo, useState } from 'react' import { IThesis } from '../../requests/responses/thesis' import { useThesis } from '../../hooks/fetcher' import { IThesisContext, ThesisContext } from './context' -import { useUser } from '../../hooks/authentication' import NotFound from '../../components/NotFound/NotFound' import PageLoader from '../../components/PageLoader/PageLoader' import { useThesisAccess } from './hooks' @@ -16,7 +15,6 @@ const ThesisProvider = (props: PropsWithChildren) => { const { children, thesisId, requireLoadedThesis = false } = props const loadedThesis = useThesis(thesisId) - const user = useUser() const [thesis, setThesis] = useState(loadedThesis) diff --git a/client/src/pages/DashboardPage/DashboardPage.tsx b/client/src/pages/DashboardPage/DashboardPage.tsx index 9da3f4b6..8bcb283d 100644 --- a/client/src/pages/DashboardPage/DashboardPage.tsx +++ b/client/src/pages/DashboardPage/DashboardPage.tsx @@ -5,7 +5,7 @@ import ApplicationsTable from '../../components/ApplicationsTable/ApplicationsTa import ThesesTable from '../../components/ThesesTable/ThesesTable' import ApplicationsProvider from '../../contexts/ApplicationsProvider/ApplicationsProvider' import ThesesProvider from '../../contexts/ThesesProvider/ThesesProvider' -import { Button, Center, Group, Space, Stack, Title } from '@mantine/core' +import { Button, Center, Group, Stack, Title } from '@mantine/core' import { ApplicationState, IApplication } from '../../requests/responses/application' import ThesesGanttChart from '../../components/ThesesGanttChart/ThesesGanttChart' import { useHasGroupAccess } from '../../hooks/authentication' diff --git a/client/src/pages/DashboardPage/components/PublicPresentationsSection/PublicPresentationsSection.tsx b/client/src/pages/DashboardPage/components/PublicPresentationsSection/PublicPresentationsSection.tsx index d46d9fb3..62d6be8f 100644 --- a/client/src/pages/DashboardPage/components/PublicPresentationsSection/PublicPresentationsSection.tsx +++ b/client/src/pages/DashboardPage/components/PublicPresentationsSection/PublicPresentationsSection.tsx @@ -2,7 +2,6 @@ import { ActionIcon, CopyButton, Group, - Modal, Stack, Text, TextInput, diff --git a/client/src/pages/MyInformationPage/MyInformationPage.tsx b/client/src/pages/MyInformationPage/MyInformationPage.tsx index d421587c..88422a8f 100644 --- a/client/src/pages/MyInformationPage/MyInformationPage.tsx +++ b/client/src/pages/MyInformationPage/MyInformationPage.tsx @@ -1,7 +1,7 @@ import ContentContainer from '../../app/layout/ContentContainer/ContentContainer' import React from 'react' import { usePageTitle } from '../../hooks/theme' -import { Alert, Title } from '@mantine/core' +import { Alert, Title, Anchor } from '@mantine/core' import UserInformationForm from '../../components/UserInformationForm/UserInformationForm' import { Info } from 'phosphor-react' import { showSimpleSuccess } from '../../utils/notification' @@ -14,9 +14,9 @@ const MyInformationPage = () => { My Information } mb='md'> We use{' '} - + gravatar.com - {' '} + {' '} for avatars. If you want to add or change your avatar, please do it on the linked site.