From 29d3360a10e95610ba8b00d77241e6c529c1aa3a Mon Sep 17 00:00:00 2001 From: Uruk Date: Mon, 1 Sep 2025 22:54:11 +0200 Subject: [PATCH] refactor: standardize Input component prop naming Replaces `className` prop with `extraClassName` across Input and PasswordInput components for consistency. Updates PasswordInput to use numeric `topOffset` instead of string `topPosition` for better type safety and clearer intent. Adds uncontrolled mode support to PasswordInput with internal state management and optional `defaultShowPassword` prop. Removes unnecessary margin classes from various View components to clean up spacing. --- app/login.tsx | 16 ++++++------- components/PasswordInput.tsx | 36 ++++++++++++++++++++---------- components/filters/FilterSheet.tsx | 2 +- components/settings/Jellyseerr.tsx | 4 ++-- 4 files changed, 35 insertions(+), 23 deletions(-) diff --git a/app/login.tsx b/app/login.tsx index aa855a04..c6d2e169 100644 --- a/app/login.tsx +++ b/app/login.tsx @@ -273,7 +273,7 @@ const Login: React.FC = () => { textContentType='oneTimeCode' clearButtonMode='while-editing' maxLength={500} - extraClassName='mb-4' + extraClassName='' /> {/* Password */} @@ -286,15 +286,15 @@ const Login: React.FC = () => { placeholder={t("login.password_placeholder")} showPassword={showPassword} onShowPasswordChange={setShowPassword} - topPosition='15' + topOffset={15} layout='tv' /> - + - +