This commit is contained in:
Kilian Hofmann 2024-07-29 22:29:21 +02:00
parent a85cdc6356
commit 34b7b47d0e
8 changed files with 23 additions and 14 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

File diff suppressed because one or more lines are too long

9
exam/dist/assets/index-Djqz5EHC.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -23,7 +23,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>GuestBook</title>
<script type="module" crossorigin src="/phpCourse/exam/dist/assets/index-ClGBs-iO.js"></script>
<script type="module" crossorigin src="/phpCourse/exam/dist/assets/index-Djqz5EHC.js"></script>
<link rel="modulepreload" crossorigin href="/phpCourse/exam/dist/assets/react-C9_qfvjK.js">
<link rel="modulepreload" crossorigin href="/phpCourse/exam/dist/assets/mui-BnAUJOoN.js">
<link rel="modulepreload" crossorigin href="/phpCourse/exam/dist/assets/tanstack-BqkrhB-y.js">

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View File

@ -34,7 +34,8 @@ const ErrorRouterComponent: TSErrorRouteComponent = ({ error }) => {
<Grid item xs={12} sx={{ display: 'flex', justifyContent: 'center' }}>
<MUILink
variant="h6"
underline="none"
underline="hover"
sx={{ cursor: 'pointer' }}
onClick={() => {
console.log('CLICK AS WELL');
router.invalidate();

View File

@ -12,6 +12,7 @@ import {
import { Link, useRouterState } from '@tanstack/react-router';
import { cloneElement, FC, ReactElement, useState } from 'react';
import { useTranslation } from 'react-i18next';
import GuestBook from '../../../assets/img/guests-book.png';
import { useApi } from '../../api/Api';
import useGuestBookStore from '../../store/store';
import LanguageMenu from '../Menus/Language/LanguageMenu';
@ -51,8 +52,15 @@ const Header: FC = () => {
<AppBar>
<Toolbar>
<Box sx={{ flexGrow: 1, alignItems: 'center', display: 'flex', gap: 1 }}>
<MUILink component={Link} to="/" color="white" variant="h6" underline="none">
{t('GuestBook')}
<MUILink
component={Link}
to="/"
color="white"
variant="h6"
underline="none"
sx={{ display: 'flex', alignItems: 'center', gap: 1 }}
>
<img src={GuestBook} width="24px" height="24px" alt={t('GuestBook')} /> {t('GuestBook')}
</MUILink>
{isLoading && <CircularProgress size={16} thickness={10} sx={{ color: 'white' }} />}
</Box>