This commit is contained in:
neko
2022-06-07 20:27:43 +03:00
parent 0e359b05e7
commit d7e7ef9471
17 changed files with 447 additions and 29 deletions

View File

@@ -1,6 +1,7 @@
import React, {useState} from 'react'
import {v1} from 'uuid'
import s from './Greeting.module.css'
import s2 from '../../s1-main/App.module.css'
import GreetingContainer from './GreetingContainer'
// types
@@ -9,7 +10,7 @@ export type UserType = {
name: string // need to fix any
}
const HW1 = () => {
const HW3 = () => {
const [users, setUsers] = useState<UserType[]>([]) // need to fix any
const addUserCallback = (name: string) => { // need to fix any
@@ -21,10 +22,12 @@ const HW1 = () => {
}
return (
<div id={'hw3'} className={s.hw3}>
<div id={'hw3'} className={s2.hw}>
<hr/>
{/*можно убрать этот тег*/}
<div className={s2.hwTitle}>homeworks 3</div>
{/*для автоматической проверки дз (не менять)*/}
<GreetingContainer users={users} addUserCallback={addUserCallback}/>
@@ -36,4 +39,4 @@ const HW1 = () => {
)
}
export default HW1
export default HW3