diff --git a/frontend/src/components/AuthForm/AuthForm.jsx b/frontend/src/components/AuthForm/AuthForm.jsx index cc0a06f..9359ca4 100644 --- a/frontend/src/components/AuthForm/AuthForm.jsx +++ b/frontend/src/components/AuthForm/AuthForm.jsx @@ -1,72 +1,39 @@ import styles from './AuthForm.module.css'; -import { useState } from 'react'; import { Link } from 'react-router-dom'; -export default function AuthForm() { - const [username, setUsername] = useState(''); - const [password, setPassword] = useState(''); +export default function AuthForm({ children, title, buttonText, linkProps = null, submitFunction }) { + const handleSubmit = (e) => { + e.preventDefault(); + submitFunction(); + }; return ( -
); diff --git a/frontend/src/components/AuthForm/AuthForm.module.css b/frontend/src/components/AuthForm/AuthForm.module.css index 0f265f3..b6faee0 100644 --- a/frontend/src/components/AuthForm/AuthForm.module.css +++ b/frontend/src/components/AuthForm/AuthForm.module.css @@ -21,20 +21,6 @@ width: 100%; } -.inputBox { - display: flex; - flex-direction: column; - gap: 8px; -} - -.input { - border-radius: 8px; - width: 100%; - border: 1px solid var(--border-color); - box-sizing: border-box; - padding: 16px; -} - .loginButton { width: 100%; background-color: var(--primary-color);