This commit is contained in:
2025-06-03 16:35:03 +05:00
3 changed files with 73 additions and 1 deletions
+24
View File
@@ -0,0 +1,24 @@
import { useState } from "react";
import NewInput from "../NewInput";
function EditTable() {
const [name, setName] = useState("");
return (
<div className='bg-[#F0F0F0] rounded-4xl w-[25vw] flex flex-col justify-center items-center'>
<h3 className='title-s font-medium'>Редатирование стола</h3>
<div className='bg-[url("/images/Table.png")] bg-no-repeat bg-contain bg-center w-full h-[6.944vw]'></div>
<div className='bg-[#FFFFFF] w-full rounded-4xl p-[1.389vw]'>
<NewInput
placeholder='Название стола*'
className='w-full h-[3.889vw]'
value={name}
onChange={(e) => setName(e.target.value)}
isError={name.length > 20}
errorMessage='Что-то пошло не так'
/>
</div>
</div>
);
}
export default EditTable;