diff --git a/src/app/@gifModal/(.)i/foundmedia/search/page.tsx b/src/app/@gifModal/(.)i/foundmedia/search/page.tsx
index 77f10f4e..c451e38f 100644
--- a/src/app/@gifModal/(.)i/foundmedia/search/page.tsx
+++ b/src/app/@gifModal/(.)i/foundmedia/search/page.tsx
@@ -1,10 +1,6 @@
// 'use client';
import Gif from '@/features/media/components/Gif';
-import GifModal from '@/features/media/components/GifModal';
-// import Gif from '@/features/media/components/Gif';
export default async function Page() {
- // export default function Page() {
- // return
- {JSON.stringify(user, null, 2)}
-
-
- {cookieInfo}
-
- - Click the button below to check if the backend recognizes you as - authenticated. -
- -- This will call GET /api/v1.0/auth/me and show the response -
-- {searchParams?.get('login') === 'success' - ? `🎉 Login successful! Welcome back, ${auth.user?.name || auth.user?.email}!` - : searchParams?.get('register') === 'success' - ? `🎉 Registration successful! Welcome, ${auth.user?.name || auth.user?.email}!` - : '🎉 Success!'} -
*/} -✅ Authenticated
-- Name: {userDisplay || 'N/A'} -
-- Username: {getField('username')} -
-- Email: {getField('email')} -
-- Role: {getField('role')} -
-- Birth Date: {getDateField('birthDate')} -
-- Location: {getField('location')} -
-- Created At: {getDateField('createdAt')} -
-❌ Not authenticated
-- Loading: {formState.isLoading ? 'Yes' : 'No'} -
-- Errors:{' '} - {Object.keys(formState.errors).length > 0 - ? JSON.stringify(formState.errors) - : 'None'} -
-- Success: {formState.success ? 'Yes' : 'No'} -
-✅ Found!
-❌ Not found - You need to login!
- )} -- Explore our button components including general-purpose buttons and - authentication buttons. -
-- Primary, secondary, outline, and ghost button variants with - different sizes and states. -
-- Social login buttons for Google, Apple, Facebook, GitHub, and - more authentication providers. -
-- Explore all button variants with different states, sizes, and use - cases. All buttons follow X/Twitter design patterns and are fully - interactive. -
-- Explore all button variants including primary, secondary, outline, - and ghost buttons with different states and sizes. -
-- Explore our comprehensive collection of responsive forms built with - generic components. All forms automatically adapt to screen size - with modal/full-page modes and follow X/Twitter design patterns. -
-
- {JSON.stringify(submittedData, null, 2)}
-
- - Login with email and password or social providers -
-- Create account with email, password, and date of birth -
-- Recover your account -
-- Get in touch with us -
-- Subscribe to updates -
-- Share your thoughts -
-Help us improve
-- Technical support request -
-- Simple email subscription -
-- Update profile information -
-- Forms automatically adapt to screen size with modal/full-page - modes -
-- Built-in validation with real-time error feedback and field - validation -
-- Integrated social login buttons with customizable providers -
-- Explore all input field variants including floating labels, - validation states, character counters, and different input types. - All components are fully interactive. -
-- Labels float above the input when focused or filled -
-- Built-in error handling and validation feedback -
-- Real-time character counting with max length support -
--// A flexible user card component with customizable actions for -// different use cases. -//
-//
-// {`import UserCard from '@/components/ui/UserCard';
-
-// handleFollow(),
-// variant: 'secondary',
-// loading: isLoading,
-// }}
-// />`}
-//
-// - Explore all modal variants including confirmation, form, info, - error, success, and more. All modals are fully functional and - interactive. -
-- This can't be undone and it will be removed from your profile, - the timeline of any accounts that follow you, and from search - results. -
-- You can always log back in at any time. If you just want to switch - accounts, you can do that by adding an existing account. -
-- This can't be undone and you'll lose your changes. -
-- Your changes have been saved successfully! -
- -- Something went wrong. Please try again later. -
- -- This action requires your attention. Please review before - proceeding. -
-- This is an informational modal. It can be used to display - important information, tips, or announcements to users. -
- -- This is a small modal (max-w-sm). Perfect for simple confirmations - and alerts. -
- -- This is a medium modal (max-w-md). Great for forms and moderate - content. -
- -- This is a large modal (max-w-lg). Suitable for detailed forms and - extensive content. -
- -- This is an extra large modal (max-w-xl). Best for complex forms and - rich content displays. -
- -- Explore our comprehensive collection of reusable UI components built - with clean architecture principles. All components follow X/Twitter - design patterns and are fully responsive. -
-- Responsive authentication forms with modal/full-page modes. - Includes login, register, password reset, and custom form - examples. -
-- All button variants including social login, primary, secondary, - outline, and ghost styles with loading states. -
-- Input fields, select dropdowns, floating labels, password toggles, - character counters, and validation states. -
-- Confirmation, info, error, success, warning, and form modals with - multiple size variations and interactive examples. -
-- Flexible user cards with customizable actions: Follow, Unfollow, - Block, Unblock, Mute, Unmute with avatar support. -
-- Components automatically adapt to screen size with - modal/full-page modes -
-- Fully typed components with comprehensive interfaces and type - safety -
-- Generic components that can be used anywhere in your project -
-- Test all messaging endpoints to verify backend fixes -
- -{test.description}
-
- {JSON.stringify(
- results[test.name].status === 'success'
- ? results[test.name].data
- : { error: results[test.name].error },
- null,
- 2
- )}
-
-
{errors.forgotPasswordSuccess}
diff --git a/src/components/ui/forms/components/FormFields.tsx b/src/components/ui/forms/components/FormFields.tsx
index f5bf8fe4..4837d92b 100644
--- a/src/components/ui/forms/components/FormFields.tsx
+++ b/src/components/ui/forms/components/FormFields.tsx
@@ -6,6 +6,10 @@ import { OTPInput } from '@/features/authentication/components/OTPInput';
import { EmailInputField } from '@/features/authentication/components/EmailInputField';
import { FormFieldsProps } from '../types';
+type FormChangeEvent = React.ChangeEvent<
+ HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement
+>;
+
export function FormFields({
fields,
formData,
@@ -16,7 +20,7 @@ export function FormFields({
onClearState,
onEmailValidationChange,
loading = false,
-}: FormFieldsProps) {
+}: Readonly