Projekt

Obecné

Profil

« Předchozí | Další » 

Revize b523c74d

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

Creation of administration page and user registration
re #9627

Zobrazit rozdíly:

frontend/src/features/Home/EditHome.tsx
23 23
    const navigate = useNavigate()
24 24

  
25 25
    const updateContent = (updated: string) => {
26
        console.log("updateContent: " + updated)
27 26
        if (content) {
28 27
            content["content"] = updated
29 28
        }
......
84 83
    {!isContentLoading && content ? (
85 84
        <div>
86 85
            <h1>Home</h1>
87
        <form onSubmit={handleSubmit}>
88
    <input type="submit" value="Submit" />
86
        <form>
87
            <Button type="button" onClick={handleSubmit}>Submit</Button>
89 88
    <ReactQuill
90 89
        theme='snow'
91 90
        value={content["content"]}

Také k dispozici: Unified diff