-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Expand file tree
/
Copy pathMain.tsx
More file actions
95 lines (91 loc) · 2.93 KB
/
Main.tsx
File metadata and controls
95 lines (91 loc) · 2.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
import {
IonContent,
IonHeader,
IonPage,
IonTitle,
IonToolbar,
IonList,
IonItem,
IonLabel,
} from '@ionic/react';
import React from 'react';
import packageJson from '../../package.json';
const Main: React.FC = () => {
const majorVersion = packageJson.dependencies['react-router'].match(
/(\d+)\.(\d+)\.(\d+)/
)?.[1];
return (
<IonPage data-pageid="home">
<IonHeader>
<IonToolbar>
<IonTitle>Test App - React Router v{majorVersion}</IonTitle>
</IonToolbar>
</IonHeader>
<IonContent>
<IonList>
<IonItem routerLink="/routing">
<IonLabel>Routing</IonLabel>
</IonItem>
<IonItem routerLink="/dynamic-routes">
<IonLabel>Dynamic Routes</IonLabel>
</IonItem>
<IonItem routerLink="/multiple-tabs">
<IonLabel>Multiple Tabs</IonLabel>
</IonItem>
<IonItem routerLink="/dynamic-tabs">
<IonLabel>Dynamic Tabs</IonLabel>
</IonItem>
<IonItem routerLink="/nested-outlet">
<IonLabel>Nested Outlet</IonLabel>
</IonItem>
<IonItem routerLink="/nested-outlet2">
<IonLabel>Nested Outlet 2</IonLabel>
</IonItem>
<IonItem routerLink="/replace-action">
<IonLabel>Replace Action</IonLabel>
</IonItem>
<IonItem routerLink="/tab-context">
<IonLabel>Tab Context</IonLabel>
</IonItem>
<IonItem routerLink="/outlet-ref">
<IonLabel>Outlet Ref</IonLabel>
</IonItem>
<IonItem routerLink="/swipe-to-go-back">
<IonLabel>Swipe to go back</IonLabel>
</IonItem>
<IonItem routerLink="/dynamic-ionpage-classnames">
<IonLabel>Dynamic IonPage Classnames</IonLabel>
</IonItem>
<IonItem routerLink="/refs">
<IonLabel>Refs</IonLabel>
</IonItem>
<IonItem routerLink="/overlays">
<IonLabel>Overlays</IonLabel>
</IonItem>
<IonItem routerLink="/tabs" id="go-to-tabs">
<IonLabel>Tabs</IonLabel>
</IonItem>
<IonItem routerLink="/tab-history-isolation">
<IonLabel>Tab History Isolation</IonLabel>
</IonItem>
<IonItem routerLink="/params/0">
<IonLabel>Params</IonLabel>
</IonItem>
<IonItem routerLink="/nested-params">
<IonLabel>Nested Params</IonLabel>
</IonItem>
<IonItem routerLink="/relative-paths">
<IonLabel>Relative Paths</IonLabel>
</IonItem>
<IonItem routerLink="/nested-tabs-relative-links">
<IonLabel>Nested Tabs Relative Links</IonLabel>
</IonItem>
<IonItem routerLink="/root-splat-tabs">
<IonLabel>Root Splat Tabs</IonLabel>
</IonItem>
</IonList>
</IonContent>
</IonPage>
);
};
export default Main;