|
1 | 1 | import * as React from 'react' |
2 | | -import { BrowserRouter, Route, Switch, Redirect } from 'react-router-dom' |
| 2 | +import { BrowserRouter, Route } from 'react-router-dom' |
3 | 3 |
|
4 | | -import ExternalExampleLayout from './components/ExternalExampleLayout' |
5 | | -import DocsLayout from './components/DocsLayout' |
6 | | -import DocsRoot from './components/DocsRoot' |
7 | | -import DocsBehaviorRoot from './components/DocsBehaviorRoot' |
8 | | -import MarkdownPage from 'docs/src/components/MarkdownPage' |
9 | | - |
10 | | -import * as Composition from './pages/Composition.mdx' |
11 | | -import * as Layout from './pages/Layout.mdx' |
12 | | -import Accessibility from './views/Accessibility' |
13 | | -import Colors from './views/Colors' |
14 | | -import ColorPalette from './views/ColorPalette' |
15 | | -import CategoryColorPalette from './views/CategoryColorPalette' |
16 | | -import ColorSchemes from './views/ColorSchemes' |
17 | | -import CategoryColorSchemes from './views/CategoryColorSchemes' |
18 | | - |
19 | | -import FAQ from './views/FAQ' |
20 | | -import Performance from './views/Performance' |
21 | | -import * as ShorthandProps from './pages/ShorthandProps.mdx' |
22 | | -import Introduction from './views/Introduction' |
23 | | -import PageNotFound from './views/PageNotFound' |
24 | | -import QuickStart from './views/QuickStart' |
25 | | -import Theming from './views/Theming' |
26 | | -import ThemingExamples from './views/ThemingExamples' |
27 | | -import IntegrateCustomComponents from './views/IntegrateCustomComponents' |
28 | | -import AccessibilityBehaviors from './views/AccessibilityBehaviors' |
29 | | -import FocusZone from './views/FocusZoneDoc' |
30 | | -import FocusTrapZone from './views/FocusTrapZoneDoc' |
31 | | -import AutoFocusZone from './views/AutoFocusZoneDoc' |
32 | | -import CustomToolbarPrototype from './prototypes/customToolbar' |
33 | | -import ChatPanePrototype from './prototypes/chatPane' |
34 | | -import ChatMessagesPrototype from './prototypes/chatMessages' |
35 | | -import AsyncShorthandPrototype from './prototypes/AsyncShorthand' |
36 | | -import EmployeeCardPrototype from './prototypes/employeeCard' |
37 | | -import MeetingOptionsPrototype from './prototypes/meetingOptions' |
38 | | -import SearchPagePrototype from './prototypes/SearchPage' |
39 | | -import MentionsPrototype from './prototypes/mentions' |
40 | | -import DropdownsPrototype from './prototypes/dropdowns' |
41 | | -import PopupsPrototype from './prototypes/popups' |
42 | | -import IconViewerPrototype from './prototypes/IconViewer' |
43 | | -import AlertsPrototype from './prototypes/alerts' |
44 | | -import NestedPopupsAndDialogsPrototype from './prototypes/NestedPopupsAndDialogs' |
45 | | -import VirtualizedTreePrototype from './prototypes/VirtualizedTree' |
46 | | -import CopyToClipboardPrototype from './prototypes/CopyToClipboard' |
47 | | -import ParticipantsListPrototype from './prototypes/ParticipantsList' |
48 | 4 | import CustomScrollbarPrototype from './prototypes/customScrollbar' |
49 | | -import EditorToolbarPrototype from './prototypes/EditorToolbar' |
50 | | -import HexagonalAvatarPrototype from './prototypes/hexagonalAvatar' |
51 | 5 |
|
52 | 6 | const Routes = () => ( |
53 | 7 | <BrowserRouter basename={__BASENAME__}> |
54 | | - <Switch> |
55 | | - <Route exact path="/maximize/:exampleName/:rtl?" component={ExternalExampleLayout} /> |
56 | | - <DocsLayout> |
57 | | - <Switch> |
58 | | - <Route exact path="/" component={Introduction} /> |
59 | | - <Route exact path="/components/:name/:tab" component={DocsRoot} sidebar /> |
60 | | - <Route |
61 | | - exact |
62 | | - path="/components/:name" |
63 | | - render={routeProps => <Redirect to={`${routeProps.location.pathname}/definition`} />} |
64 | | - /> |
65 | | - <Route exact path="/behaviors/:name" component={DocsBehaviorRoot} sidebar /> |
66 | | - <Route exact path="/quick-start" component={QuickStart} /> |
67 | | - <Route exact path="/prototype-chat-pane" component={ChatPanePrototype} /> |
68 | | - <Route exact path="/prototype-chat-messages" component={ChatMessagesPrototype} /> |
69 | | - <Route exact path="/prototype-custom-scrollbar" component={CustomScrollbarPrototype} /> |
70 | | - <Route exact path="/prototype-custom-toolbar" component={CustomToolbarPrototype} /> |
71 | | - <Route exact path="/prototype-async-shorthand" component={AsyncShorthandPrototype} /> |
72 | | - <Route exact path="/prototype-employee-card" component={EmployeeCardPrototype} /> |
73 | | - <Route exact path="/prototype-meeting-options" component={MeetingOptionsPrototype} /> |
74 | | - <Route exact path="/prototype-participants-list" component={ParticipantsListPrototype} /> |
75 | | - <Route exact path="/prototype-search-page" component={SearchPagePrototype} /> |
76 | | - <Route exact path="/prototype-mentions" component={MentionsPrototype} /> |
77 | | - <Route exact path="/prototype-dropdowns" component={DropdownsPrototype} /> |
78 | | - <Route exact path="/prototype-popups" component={PopupsPrototype} /> |
79 | | - <Route exact path="/icon-viewer" component={IconViewerPrototype} /> |
80 | | - <Route exact path="/prototype-alerts" component={AlertsPrototype} /> |
81 | | - <Route exact path="/prototype-editor-toolbar" component={EditorToolbarPrototype} /> |
82 | | - <Route exact path="/prototype-hexagonal-avatar" component={HexagonalAvatarPrototype} /> |
83 | | - <Route |
84 | | - exact |
85 | | - path="/prototype-nested-popups-and-dialogs" |
86 | | - component={NestedPopupsAndDialogsPrototype} |
87 | | - /> |
88 | | - <Route exact path="/virtualized-tree" component={VirtualizedTreePrototype} /> |
89 | | - <Route exact path="/prototype-copy-to-clipboard" component={CopyToClipboardPrototype} /> |
90 | | - <Route exact path="/faq" component={FAQ} /> |
91 | | - <Route exact path="/accessibility" component={Accessibility} /> |
92 | | - <Route exact path="/accessibility-behaviors" component={AccessibilityBehaviors} /> |
93 | | - <Route exact path="/focus-zone" component={FocusZone} /> |
94 | | - <Route exact path="/focus-trap-zone" component={FocusTrapZone} /> |
95 | | - <Route exact path="/auto-focus-zone" component={AutoFocusZone} /> |
96 | | - <Route exact path="/theming" component={Theming} /> |
97 | | - <Route exact path="/theming-examples" component={ThemingExamples} /> |
98 | | - <Route exact path="/layout"> |
99 | | - <MarkdownPage page={Layout} /> |
100 | | - </Route> |
101 | | - <Route exact path="/shorthand-props"> |
102 | | - <MarkdownPage page={ShorthandProps} /> |
103 | | - </Route> |
104 | | - <Route exact path="/integrate-custom-components" component={IntegrateCustomComponents} /> |
105 | | - <Route exact path="/performance" component={Performance} /> |
106 | | - <Route exact path="/composition"> |
107 | | - <MarkdownPage page={Composition} /> |
108 | | - </Route> |
109 | | - <Route exact path="/colors" component={Colors} /> |
110 | | - <Route exact path="/color-palette" component={ColorPalette} /> |
111 | | - <Route exact path="/color-palette-category" component={CategoryColorPalette} /> |
112 | | - <Route exact path="/color-schemes" component={ColorSchemes} /> |
113 | | - <Route exact path="/color-schemes-category" component={CategoryColorSchemes} /> |
114 | | - <Route exact path="/*" component={PageNotFound} /> |
115 | | - </Switch> |
116 | | - </DocsLayout> |
117 | | - </Switch> |
| 8 | + <Route exact path="/prototype-custom-scrollbar" component={CustomScrollbarPrototype} /> |
118 | 9 | </BrowserRouter> |
119 | 10 | ) |
120 | 11 |
|
|
0 commit comments