@@ -2,51 +2,47 @@ import Dropdown from 'react-bootstrap/Dropdown';
2
2
import DropdownButton from 'react-bootstrap/DropdownButton' ;
3
3
import SplitButton from 'react-bootstrap/SplitButton' ;
4
4
5
- function DropDirectioExample ( ) {
5
+ function DropDirectionExample ( ) {
6
6
return (
7
7
< >
8
- < div className = "mb-2" >
9
- { [ 'up' , 'up-centered' , 'down' , 'down-centered' , 'start' , 'end' ] . map (
10
- ( direction ) => (
11
- < DropdownButton
12
- as = { ButtonGroup }
13
- key = { direction }
14
- id = { `dropdown-button-drop-${ direction } ` }
15
- drop = { direction }
16
- variant = "secondary"
17
- title = { ` Drop ${ direction } ` }
18
- >
19
- < Dropdown . Item eventKey = "1" > Action</ Dropdown . Item >
20
- < Dropdown . Item eventKey = "2" > Another action</ Dropdown . Item >
21
- < Dropdown . Item eventKey = "3" > Something else here</ Dropdown . Item >
22
- < Dropdown . Divider />
23
- < Dropdown . Item eventKey = "4" > Separated link</ Dropdown . Item >
24
- </ DropdownButton >
25
- ) ,
26
- ) }
27
- </ div >
8
+ { [ 'up' , 'up-centered' , 'down' , 'down-centered' , 'start' , 'end' ] . map (
9
+ ( direction ) => (
10
+ < DropdownButton
11
+ as = { ButtonGroup }
12
+ key = { direction }
13
+ id = { `dropdown-button-drop-${ direction } ` }
14
+ drop = { direction }
15
+ variant = "secondary"
16
+ title = { `Drop ${ direction } ` }
17
+ >
18
+ < Dropdown . Item eventKey = "1" > Action</ Dropdown . Item >
19
+ < Dropdown . Item eventKey = "2" > Another action</ Dropdown . Item >
20
+ < Dropdown . Item eventKey = "3" > Something else here</ Dropdown . Item >
21
+ < Dropdown . Divider />
22
+ < Dropdown . Item eventKey = "4" > Separated link</ Dropdown . Item >
23
+ </ DropdownButton >
24
+ ) ,
25
+ ) }
28
26
29
- < div >
30
- { [ 'up' , 'up-centered' , 'down' , 'down-centered' , 'start' , 'end' ] . map (
31
- ( direction ) => (
32
- < SplitButton
33
- key = { direction }
34
- id = { `dropdown-button-drop-${ direction } ` }
35
- drop = { direction }
36
- variant = "secondary"
37
- title = { `Drop ${ direction } ` }
38
- >
39
- < Dropdown . Item eventKey = "1" > Action</ Dropdown . Item >
40
- < Dropdown . Item eventKey = "2" > Another action</ Dropdown . Item >
41
- < Dropdown . Item eventKey = "3" > Something else here</ Dropdown . Item >
42
- < Dropdown . Divider />
43
- < Dropdown . Item eventKey = "4" > Separated link</ Dropdown . Item >
44
- </ SplitButton >
45
- ) ,
46
- ) }
47
- </ div >
27
+ { [ 'up' , 'up-centered' , 'down' , 'down-centered' , 'start' , 'end' ] . map (
28
+ ( direction ) => (
29
+ < SplitButton
30
+ key = { direction }
31
+ id = { `dropdown-button-drop-${ direction } ` }
32
+ drop = { direction }
33
+ variant = "secondary"
34
+ title = { `Drop ${ direction } ` }
35
+ >
36
+ < Dropdown . Item eventKey = "1" > Action</ Dropdown . Item >
37
+ < Dropdown . Item eventKey = "2" > Another action</ Dropdown . Item >
38
+ < Dropdown . Item eventKey = "3" > Something else here</ Dropdown . Item >
39
+ < Dropdown . Divider />
40
+ < Dropdown . Item eventKey = "4" > Separated link</ Dropdown . Item >
41
+ </ SplitButton >
42
+ ) ,
43
+ ) }
48
44
</ >
49
45
) ;
50
46
}
51
47
52
- export default DropDirectioExample ;
48
+ export default DropDirectionExample ;
0 commit comments