diff --git a/client/components/V1/Generic/TextFieldComponent.tsx b/client/components/V1/Generic/TextFieldComponent.tsx index e3888761..d185e860 100644 --- a/client/components/V1/Generic/TextFieldComponent.tsx +++ b/client/components/V1/Generic/TextFieldComponent.tsx @@ -1,16 +1,50 @@ import { TextField, Button, Box } from '@mui/material' import { useTranslation } from 'react-i18next' - +import { useState } from 'react' const TextFieldComponent = () => { const { t } = useTranslation() - - + + const [content, setContent] = useState('') + const [isEditing, setIsEditing] = useState(false) + + const handleStopEditing = () => { + setIsEditing(false) + } + + const handleStartEditing = () => { + setIsEditing(true) + } + return ( - - - + setContent(e.target.value)} + /> + { + isEditing ? + + : + + } + ) } diff --git a/client/components/V1/index.tsx b/client/components/V1/index.tsx index 9fda71d7..36015be9 100644 --- a/client/components/V1/index.tsx +++ b/client/components/V1/index.tsx @@ -12,6 +12,9 @@ const Page = () => { + +
+