|
1 | 1 | import React from 'react';
|
2 | 2 | import ReactDOM from 'react-dom';
|
3 | 3 |
|
4 |
| -import { StatefulTabs, Pagination } from '../dist/main'; |
| 4 | +import { StatefulTabs, Pagination, ToastsContainer } from '../dist/main'; |
5 | 5 | import { FormExamples } from './FormExamples';
|
6 | 6 | import { TableExamples } from './TableExamples';
|
7 | 7 | import { TabsExamples } from './TabsExamples';
|
8 | 8 | import { DialogExamples } from './DialogExamples';
|
9 | 9 | import { ListGroupExamples } from './ListGroupExamples';
|
| 10 | +import { ToastsExamples } from './ToastsExamples'; |
10 | 11 |
|
11 | 12 | ReactDOM.render(
|
12 | 13 | <div className="mt-3">
|
13 | 14 | <React.StrictMode>
|
14 |
| - <StatefulTabs |
15 |
| - vertical={true} |
16 |
| - initialTab={1} |
17 |
| - tabs={[ |
18 |
| - { |
19 |
| - title: 'Dialog', |
20 |
| - content: <DialogExamples />, |
21 |
| - }, |
22 |
| - { |
23 |
| - title: 'Forms', |
24 |
| - content: <FormExamples />, |
25 |
| - }, |
26 |
| - { |
27 |
| - title: 'List groups', |
28 |
| - content: <ListGroupExamples />, |
29 |
| - }, |
30 |
| - { |
31 |
| - title: 'Pagination', |
32 |
| - content: <PaginationExamples />, |
33 |
| - }, |
34 |
| - { |
35 |
| - title: 'Tables', |
36 |
| - content: <TableExamples />, |
37 |
| - }, |
38 |
| - { |
39 |
| - title: 'Tabs', |
40 |
| - content: <TabsExamples />, |
41 |
| - }, |
42 |
| - ]} |
43 |
| - /> |
| 15 | + <ToastsContainer> |
| 16 | + <StatefulTabs |
| 17 | + vertical={true} |
| 18 | + initialTab={6} |
| 19 | + tabs={[ |
| 20 | + { |
| 21 | + title: 'Dialog', |
| 22 | + content: <DialogExamples />, |
| 23 | + }, |
| 24 | + { |
| 25 | + title: 'Forms', |
| 26 | + content: <FormExamples />, |
| 27 | + }, |
| 28 | + { |
| 29 | + title: 'List groups', |
| 30 | + content: <ListGroupExamples />, |
| 31 | + }, |
| 32 | + { |
| 33 | + title: 'Pagination', |
| 34 | + content: <PaginationExamples />, |
| 35 | + }, |
| 36 | + { |
| 37 | + title: 'Tables', |
| 38 | + content: <TableExamples />, |
| 39 | + }, |
| 40 | + { |
| 41 | + title: 'Tabs', |
| 42 | + content: <TabsExamples />, |
| 43 | + }, |
| 44 | + { |
| 45 | + title: 'Toasts', |
| 46 | + content: <ToastsExamples />, |
| 47 | + }, |
| 48 | + ]} |
| 49 | + /> |
| 50 | + </ToastsContainer> |
44 | 51 | </React.StrictMode>
|
45 | 52 | </div>,
|
46 | 53 | document.getElementById('root')
|
|
0 commit comments