Successfully centralized all TypeScript types and interfaces from scattered component files into a well-organized types/ directory, grouped by domain and feature.
-
types/auth.ts- Authentication-related typesSignUpEmailModalPropsAuthShowcasePropssignUpSchema(Zod schema)loginSchema(Zod schema)SignUpFormValuesLoginFormValues
-
types/landing.ts- Landing page typesFeatureCardProps
-
types/icons.ts- Icon component typesIconProps
-
types/ui.ts- UI component types (comprehensive update)ButtonPropsTextInputPropsTextareaInputPropsEmailInputPropsFaqCardPropsSupportTabsPropsToggleCardPropsNotificationPropsAppLayoutPropsPaginationPropsTransactionsPaginationPropsPaginationLinkPropsFormItemContextValue
-
types/transaction.ts- Transaction types (expanded)TransactionTransactionPropsTransactionFiltersSortFieldSortDirectionTransactionsTablePropsTokenIconPropsTransactionsHeaderPropsTransactionsFiltersProps
types/sidebar.ts- Sidebar context typestypes/NotificationItem.tsx- Notification typestypes/svg.ts- SVG interface types
components/auth/sign-up/sign-up-email-modal.tsxcomponents/auth/auth-showcase.tsxcomponents/auth/sign-up/sign-up-form.tsxcomponents/auth/login/login-form.tsx
components/common/AppLayout.tsxcomponents/common/Button.tsxcomponents/common/EmailInput.tsxcomponents/common/FaqCard.tsxcomponents/common/NotificationPanel.tsxcomponents/common/SupportTabs.tsxcomponents/common/TextAreaInput.tsxcomponents/common/TextInput.tsxcomponents/common/ToggleCard.tsx
components/landing/FeatureCard.tsx
components/icons/BellFillIcon.tsx
components/transactions/TransactionsTable.tsxcomponents/transactions/TokenIcon.tsxcomponents/transactions/Pagination.tsxcomponents/transactions/TransactionsPagination.tsxcomponents/transactions/TransactionsHeader.tsxcomponents/transactions/TransactionsFilters.tsx
components/ui/pagination.tsxcomponents/ui/form.tsx
- Centralized Management: All types are now in one location for easier maintenance
- Logical Grouping: Types are organized by domain (auth, ui, transaction, etc.)
- No Duplicates: Removed all duplicate type definitions
- Consistent Imports: All components now import from centralized types
- Better Reusability: Types can be easily shared across components
- Improved Maintainability: Changes to types only need to be made in one place
✅ All types/interfaces are in types/ and grouped logically
- Created domain-specific files (auth.ts, landing.ts, icons.ts)
- Updated existing files with comprehensive type collections
- Organized by feature and functionality
✅ No duplicate or unused type definitions
- Removed all local interface/type definitions from component files
- Consolidated duplicate types into single definitions
- No unused types found
✅ All imports are updated and working
- Updated all component imports to use centralized types
- Fixed import paths where necessary
- All imports are properly structured and functional
types/
├── auth.ts # Authentication types and schemas
├── icons.ts # Icon component types
├── landing.ts # Landing page types
├── ui.ts # UI component types (comprehensive)
├── transaction.ts # Transaction-related types
├── sidebar.ts # Sidebar context types
├── NotificationItem.tsx # Notification types
└── svg.ts # SVG interface types
- ✅ No remaining local type definitions in component files
- ✅ All imports correctly reference centralized types
- ✅ No duplicate type definitions
- ✅ Logical grouping by domain/feature
- ✅ All component files updated with proper imports