@solidxai/solidctl 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
import { useRoutes } from "react-router-dom";
|
|
2
2
|
import { getSolidRoutes } from "@solidxai/core-ui";
|
|
3
|
-
import { VenueAppLoginPage } from "../pages/auth/VenueAppLoginPage";
|
|
4
3
|
import { HelloAuthPage } from "../pages/auth/HelloAuthPage";
|
|
5
4
|
import { AboutPage } from "../pages/static/AboutPage";
|
|
6
5
|
import { AdminInfoPage } from "../pages/admin/AdminInfoPage";
|
|
7
6
|
|
|
8
7
|
export function AppRoutes() {
|
|
9
|
-
// Example of overriding and extending the default Solid routes...
|
|
10
|
-
const elementOverrides = {
|
|
11
|
-
login: <VenueAppLoginPage />,
|
|
12
|
-
};
|
|
13
|
-
|
|
14
8
|
// Example of adding an extra route that uses the AuthLayout...
|
|
15
9
|
const extraAuthRoutes = [
|
|
16
10
|
{ path: "/auth/hello", element: <HelloAuthPage /> },
|
|
@@ -24,7 +18,6 @@ export function AppRoutes() {
|
|
|
24
18
|
{ path: "/about", element: <AboutPage /> },
|
|
25
19
|
]
|
|
26
20
|
const routes = getSolidRoutes({
|
|
27
|
-
elementOverrides,
|
|
28
21
|
extraAuthRoutes,
|
|
29
22
|
extraRoutes,
|
|
30
23
|
extraAdminRoutes,
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { SolidLogin } from "@solidxai/core-ui";
|
|
2
|
-
|
|
3
|
-
export function VenueAppLoginPage() {
|
|
4
|
-
return (
|
|
5
|
-
<SolidLogin
|
|
6
|
-
signInValidatorLabel="Mobile / SAP Code / Dhan Code"
|
|
7
|
-
signInValidatorPlaceholder="Enter any one of Mobile / SAP Code / Dhan Code"
|
|
8
|
-
/>
|
|
9
|
-
);
|
|
10
|
-
}
|