mirror of
https://github.com/luxfi/safe-wallet.git
synced 2026-10-30 15:19:21 +00:00
* docs(earn): add specification and planning documents for refactor * refactor(web): restructure Earn feature to follow standard architecture pattern Refactors the earn feature to comply with the feature architecture standard documented in apps/web/docs/feature-architecture.md. Changes: - Create public API barrel file (index.ts) with lazy-loaded EarnPage - Add types.ts with centralized EarnButtonProps interface - Add barrel exports for components/, hooks/, services/ - Move utils.ts to services/utils.ts - Rename main component to components/EarnPage/ - Convert all internal imports to relative paths - Update all external imports to use public API (@/features/earn) - Add local InfoTooltip component to eliminate cross-feature dependency All external consumers now import from @/features/earn instead of deep paths, enabling proper code splitting and feature isolation.