Projekt

Obecné

Profil

« Předchozí | Další » 

Revize d9c68ec4

Přidáno uživatelem Michal Schwob před asi 2 roky(ů)

Homepage formated
re #9821

Zobrazit rozdíly:

frontend/src/features/Home/Home.tsx
1
import {Button, Container, Paper} from '@mui/material'
1
import {Button, Container, Paper, Typography} from '@mui/material'
2 2
import {Fragment, useEffect, useState} from 'react'
3 3
import { useDispatch, useSelector } from 'react-redux'
4 4
import { logout } from '../Auth/userSlice'
......
55 55

  
56 56
    return (
57 57
        <Fragment>
58
            <Typography variant="h3" sx={{ mb: 2 }} fontWeight="bold">
59
                Home
60
            </Typography>
58 61
            <Paper style={{ minHeight: '80vh', display:'flex', justifyContent: 'space-between', flexDirection:'column'}} variant="outlined">
59 62
                {isContentLoading && !err ? <ContentLoading /> : null}
60 63
                {!isContentLoading && content ? (
61
                    <Container>
62
                        <h1>Home</h1>
64
                    <Container sx={{ mt: 2 }}>
65

  
63 66
                        {formatHtmlStringToReactDom(content["content"] as string)}
64 67
                    </Container>
65 68
                ) : null}

Také k dispozici: Unified diff