Skip to main content
If you are using the layout components from @orderly.network/portfolio directly and are an existing user, when you want to use mobile pages, we have added HistoryPage and SettingPage. You can add the corresponding routes to fully utilize the mobile functionality.

Component Import Paths

HistoryPage Component

SettingPage Component

Route Path Configuration

Based on the PortfolioLeftSidebarPath 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 your routerAdapter 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

  1. Path Consistency: Ensure route paths are consistent with PortfolioLeftSidebarPath enum values
  2. Mobile Detection: Components automatically detect mobile environment and render corresponding UI
  3. Dependency Requirements: Ensure all necessary dependency packages are installed, including @orderly.network/ui, @orderly.network/i18n, etc.
  4. RouterAdapter: Ensure proper implementation of routerAdapter interface to support page navigation functionality