From 48c29d81d0737829ad19cc7ff722293374c7d612 Mon Sep 17 00:00:00 2001 From: walkeU Date: Thu, 22 May 2025 03:54:28 +0200 Subject: [PATCH] komponensek frissitese --- .../src/components/Buttons/Button.jsx | 6 +++-- .../src/components/Inputs/InputBox.jsx | 26 +++++++++---------- .../src/pages/Auth/LoginForm.jsx | 2 +- .../src/pages/Auth/RegisterForm.jsx | 2 +- .../src/pages/Testing/Test.jsx | 21 +++++++++++++-- 5 files changed, 38 insertions(+), 19 deletions(-) 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); + }} + /> +
); }