diff --git a/SerpentRace_Frontend/src/components/Buttons/Button.jsx b/SerpentRace_Frontend/src/components/Buttons/Button.jsx index d3bc9ed5..76fa3029 100755 --- a/SerpentRace_Frontend/src/components/Buttons/Button.jsx +++ b/SerpentRace_Frontend/src/components/Buttons/Button.jsx @@ -3,14 +3,16 @@ import { motion } from "framer-motion"; -export default function Button({ text, type, onClick }) { +export default function Button({ text, type, onClick, width }) { + const widthClass = width ? width : "w-full"; + return ( {text} diff --git a/SerpentRace_Frontend/src/components/Inputs/InputBox.jsx b/SerpentRace_Frontend/src/components/Inputs/InputBox.jsx index 1a907e19..d8a4dc65 100755 --- a/SerpentRace_Frontend/src/components/Inputs/InputBox.jsx +++ b/SerpentRace_Frontend/src/components/Inputs/InputBox.jsx @@ -1,16 +1,16 @@ // src/components/Inputs/InputBox.jsx // InputBox komponens -export default function InputBox({ type, placeholder, value, onChange }) { - return ( -
- -
- ); - } +export default function InputBox({ type, placeholder, value, onChange, width }) { + const widthClass = width ? width : "w-full"; + + return ( + + ); +} diff --git a/SerpentRace_Frontend/src/pages/Auth/LoginForm.jsx b/SerpentRace_Frontend/src/pages/Auth/LoginForm.jsx index bafbac6c..76276c10 100755 --- a/SerpentRace_Frontend/src/pages/Auth/LoginForm.jsx +++ b/SerpentRace_Frontend/src/pages/Auth/LoginForm.jsx @@ -42,7 +42,7 @@ export default function LoginForm() { {error && (
{error}
)} -
+ {error} )} - + -

Test

+
+ { + console.log(value); + }} + /> +
); }