Add src/pages.config.cs
This commit is contained in:
parent
39e3f30068
commit
0a7bf0b581
|
|
@ -0,0 +1,68 @@
|
|||
/**
|
||||
* pages.config.js - Page routing configuration
|
||||
*
|
||||
* This file is AUTO-GENERATED. Do not add imports or modify PAGES manually.
|
||||
* Pages are auto-registered when you create files in the ./pages/ folder.
|
||||
*
|
||||
* THE ONLY EDITABLE VALUE: mainPage
|
||||
* This controls which page is the landing page (shown when users visit the app).
|
||||
*
|
||||
* Example file structure:
|
||||
*
|
||||
* import HomePage from './pages/HomePage';
|
||||
* import Dashboard from './pages/Dashboard';
|
||||
* import Settings from './pages/Settings';
|
||||
*
|
||||
* export const PAGES = {
|
||||
* "HomePage": HomePage,
|
||||
* "Dashboard": Dashboard,
|
||||
* "Settings": Settings,
|
||||
* }
|
||||
*
|
||||
* export const pagesConfig = {
|
||||
* mainPage: "HomePage",
|
||||
* Pages: PAGES,
|
||||
* };
|
||||
*
|
||||
* Example with Layout (wraps all pages):
|
||||
*
|
||||
* import Home from './pages/Home';
|
||||
* import Settings from './pages/Settings';
|
||||
* import __Layout from './Layout.jsx';
|
||||
*
|
||||
* export const PAGES = {
|
||||
* "Home": Home,
|
||||
* "Settings": Settings,
|
||||
* }
|
||||
*
|
||||
* export const pagesConfig = {
|
||||
* mainPage: "Home",
|
||||
* Pages: PAGES,
|
||||
* Layout: __Layout,
|
||||
* };
|
||||
*
|
||||
* To change the main page from HomePage to Dashboard, use find_replace:
|
||||
* Old: mainPage: "HomePage",
|
||||
* New: mainPage: "Dashboard",
|
||||
*
|
||||
* The mainPage value must match a key in the PAGES object exactly.
|
||||
*/
|
||||
import Activate from './pages/Activate';
|
||||
import Dashboard from './pages/Dashboard';
|
||||
import MyProfile from './pages/MyProfile';
|
||||
import Onboarding from './pages/Onboarding';
|
||||
import StripeConnect from './pages/StripeConnect';
|
||||
|
||||
|
||||
export const PAGES = {
|
||||
"Activate": Activate,
|
||||
"Dashboard": Dashboard,
|
||||
"MyProfile": MyProfile,
|
||||
"Onboarding": Onboarding,
|
||||
"StripeConnect": StripeConnect,
|
||||
}
|
||||
|
||||
export const pagesConfig = {
|
||||
mainPage: "Onboarding",
|
||||
Pages: PAGES,
|
||||
};
|
||||
Loading…
Reference in New Issue