- Updated NavItem to use Next.js Link component
- Changed from onClick to href for proper routing
- Added usePathname to detect current route
- Assets navigation now links to /product page
- Active state automatically highlights based on current path
- Added dark mode hover states
Navigation:
- Click "Assets" in sidebar to view Product page
- Automatic active highlighting on current page
- Smooth client-side navigation
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Replaced HeroUI Input with native input element
- Removed number input spin buttons (up/down arrows)
- Removed all backgrounds, borders, and shadows
- Removed focus outline for seamless integration
- Input now appears as plain text until clicked
- Maintains right-aligned text and placeholder styling
CSS techniques used:
- [appearance:textfield] for Firefox
- [&::-webkit-*-spin-button]:appearance-none for Chrome/Safari
- bg-transparent, border-none, outline-none for clean look
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Added HeroUI Input component for amount entry
- Replaced static text with editable input field
- Added state management for amount value
- Updated MAX button to use HeroUI Button and set max value
- Input now displays right-aligned with proper styling
- Shows USD equivalent below input
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Implemented HeroUI migration plan with the following changes:
Stage 0: Environment Setup
- Installed @heroui/react@2.8.7, @heroui/theme@2.4.26, framer-motion@12.29.2
- Configured Tailwind with HeroUI plugin
- Added HeroUI content paths to Tailwind config
Stage 1: Provider Architecture
- Created Providers.tsx wrapper combining HeroUIProvider and AppProvider
- Updated app/layout.tsx to use new Providers component
- Preserved all AppContext functionality (theme, language, translations)
Stage 2: Component Migrations
- TabNavigation: Migrated to HeroUI Tabs with keyboard navigation support
- TopBar: Migrated buttons to HeroUI Button components
- LanguageSwitch: Migrated to HeroUI Dropdown for better UX
- ThemeSwitch: Migrated to HeroUI Button (isIconOnly variant)
- MintSwapPanel: Migrated to HeroUI Tabs and Button components
Benefits:
- Enhanced accessibility with ARIA attributes and keyboard navigation
- Smooth animations and transitions via Framer Motion
- Consistent component API across the application
- Maintained all existing design tokens and color system
- Preserved dark mode functionality
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>