This repository has been archived by the owner on Mar 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 55
/
routes.tsx
142 lines (137 loc) · 5.27 KB
/
routes.tsx
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
import * as React from 'react'
import { BrowserRouter, Route, Switch } from 'react-router-dom'
import ExternalExampleLayout from './components/ExternalExampleLayout'
import DocsLayout from './components/DocsLayout'
import DocsRoot from './components/DocsRoot'
import Accessibility from './views/Accessibility'
import ColorPalette from './views/ColorPalette'
import FAQ from './views/FAQ'
import ShorthandProps from './views/ShorthandProps'
import Introduction from './views/Introduction'
import PageNotFound from './views/PageNotFound'
import QuickStart from './views/QuickStart'
import Theming from './views/Theming'
import ThemingExamples from './views/ThemingExamples'
import LayoutGuide from './views/Layout'
import IntegrateCustomComponents from './views/IntegrateCustomComponents'
import AccessibilityBehaviors from './views/AccessibilityBehaviors'
import FocusZone from './views/FocusZone'
import FocusTrapZone from './views/FocusTrapZone'
import AutoFocusZone from './views/AutoFocusZone'
import ChatPanePrototype from './prototypes/chatPane'
import ChatMessagesPrototype from './prototypes/chatMessages'
import AsyncShorthandPrototype from './prototypes/AsyncShorthand'
import EmployeeCardPrototype from './prototypes/employeeCard'
import MeetingOptionsPrototype from './prototypes/meetingOptions'
import SearchPagePrototype from './prototypes/SearchPage'
import MentionsPrototype from './prototypes/mentions'
import DropdownsPrototype from './prototypes/dropdowns'
import PopupsPrototype from './prototypes/popups'
import IconViewerPrototype from './prototypes/IconViewer'
import MenuButtonPrototype from './prototypes/MenuButton'
import AlertsPrototype from './prototypes/alerts'
const Router = () => (
<BrowserRouter basename={__BASENAME__}>
<Switch>
<Route exact path="/maximize/:exampleName/:rtl?" component={ExternalExampleLayout} />
<Switch>
<DocsLayout exact path="/" component={Introduction} />
<DocsLayout exact path="/:type/:name" component={DocsRoot} sidebar />
<DocsLayout exact path="/quick-start" component={QuickStart} />
{process.env.NODE_ENV !== 'production' && [
<DocsLayout
exact
key="/prototype-chat-pane"
path="/prototype-chat-pane"
component={ChatPanePrototype}
/>,
<DocsLayout
exact
key="/prototype-chat-messages"
path="/prototype-chat-messages"
component={ChatMessagesPrototype}
/>,
,
<DocsLayout
exact
key="/prototype-async-shorthand"
path="/prototype-async-shorthand"
component={AsyncShorthandPrototype}
/>,
<DocsLayout
exact
key="/prototype-employee-card"
path="/prototype-employee-card"
component={EmployeeCardPrototype}
/>,
<DocsLayout
exact
key="/prototype-meeting-options"
path="/prototype-meeting-options"
component={MeetingOptionsPrototype}
/>,
<DocsLayout
exact
key="/prototype-search-page"
path="/prototype-search-page"
component={SearchPagePrototype}
/>,
<DocsLayout
exact
key="/prototype-mentions"
path="/prototype-mentions"
component={MentionsPrototype}
/>,
<DocsLayout
exact
key="/prototype-dropdowns"
path="/prototype-dropdowns"
component={DropdownsPrototype}
/>,
<DocsLayout
exact
key="/prototype-popups"
path="/prototype-popups"
component={PopupsPrototype}
/>,
<DocsLayout
exact
key="/icon-viewer"
path="/icon-viewer"
component={IconViewerPrototype}
/>,
<DocsLayout
exact
key="/menu-button"
path="/menu-button"
component={MenuButtonPrototype}
/>,
<DocsLayout
exact
key="/prototype-alerts"
path="/prototype-alerts"
component={AlertsPrototype}
/>,
]}
<DocsLayout exact path="/faq" component={FAQ} />
<DocsLayout exact path="/accessibility" component={Accessibility} />
<DocsLayout exact path="/accessibility-behaviors" component={AccessibilityBehaviors} />
<DocsLayout exact path="/focus-zone" component={FocusZone} />
<DocsLayout exact path="/focus-trap-zone" component={FocusTrapZone} />
<DocsLayout exact path="/auto-focus-zone" component={AutoFocusZone} />
<DocsLayout exact path="/theming" component={Theming} />
<DocsLayout exact path="/theming-examples" component={ThemingExamples} />
<DocsLayout exact path="/layout" component={LayoutGuide} />
<DocsLayout exact path="/shorthand-props" component={ShorthandProps} />
<DocsLayout
exact
path="/integrate-custom-components"
component={IntegrateCustomComponents}
/>
<DocsLayout exact path="/color-palette" component={ColorPalette} />
<DocsLayout exact path="/*" component={PageNotFound} />
</Switch>
</Switch>
</BrowserRouter>
)
export default Router