Component Import Paths
HistoryPage Component
SettingPage Component
Route Path Configuration
Based on thePortfolioLeftSidebarPath
enum definition, the standard route paths for mobile pages are:
Complete Route Configuration Examples
React Router Configuration Example
Next.js App Router Configuration Example
Next.js Pages Router Configuration Example
Mobile Navigation Configuration
If you are using Portfolio’s layout components, mobile navigation will automatically handle these routes. Ensure yourrouterAdapter
is properly configured:
Feature Description
HistoryPage
- Function: Display user’s trading history records
- Includes: Deposit/withdrawal history, funding fee history, distribution history
- Mobile Optimization: Automatically adapts to mobile interface, provides touch-friendly interactive experience
SettingPage
- Function: User settings page
- Includes: Account settings, preference settings, etc.
- Mobile Optimization: Responsive design, supports mobile operations
Important Notes
- Path Consistency: Ensure route paths are consistent with
PortfolioLeftSidebarPath
enum values - Mobile Detection: Components automatically detect mobile environment and render corresponding UI
- Dependency Requirements: Ensure all necessary dependency packages are installed, including
@orderly.network/ui
,@orderly.network/i18n
, etc. - RouterAdapter: Ensure proper implementation of
routerAdapter
interface to support page navigation functionality