File tree Expand file tree Collapse file tree 3 files changed +45
-7
lines changed
Expand file tree Collapse file tree 3 files changed +45
-7
lines changed Original file line number Diff line number Diff line change 11import React from "react" ;
22import Popup from "../../src/Popup" ;
33
4- const ControlledPopup = ( ) => {
4+ const ControlledModal = ( ) => {
55 return (
66 < div >
7- < ControlledPopupClass />
7+ < ControlledModalClass />
88 < div style = { { zIndex : "90" } } >
99 { " " }
1010 Lorem ipsum dolor sit amet consectetur adipisicing elit. Nemo voluptas
@@ -15,9 +15,9 @@ const ControlledPopup = () => {
1515 ) ;
1616} ;
1717
18- export default ControlledPopup ;
18+ export default ControlledModal ;
1919
20- class ControlledPopupClass extends React . Component {
20+ class ControlledModalClass extends React . Component {
2121 constructor ( props ) {
2222 super ( props ) ;
2323 this . state = { open : false } ;
Original file line number Diff line number Diff line change 1+ import React from "react" ;
2+ import Popup from "../../src/Popup" ;
3+
4+ export default class ControlledPopup extends React . Component {
5+ constructor ( props ) {
6+ super ( props ) ;
7+ }
8+
9+ render ( ) {
10+ return (
11+ < Popup
12+ trigger = { < button className = "button" > Controlled Tooltip </ button > }
13+ position = "right center"
14+ //open={this.state.open}
15+ closeOnDocumentClick
16+ // onClose={this.closeModal}
17+ >
18+ { close => (
19+ < div className = "modal" >
20+ < a className = "close" onClick = { close } >
21+ × remove
22+ </ a >
23+ Lorem ipsum dolor sit amet, consectetur adipisicing elit. Beatae
24+ magni omnis delectus nemo, maxime molestiae dolorem numquam
25+ mollitia, voluptate ea, accusamus excepturi deleniti ratione
26+ sapiente! Laudantium, aperiam doloribus. Odit, aut.
27+ </ div >
28+ ) }
29+ </ Popup >
30+ ) ;
31+ }
32+ }
Original file line number Diff line number Diff line change @@ -8,7 +8,9 @@ import PopupFuncStory from "./PopupFunc";
88import PopupInputFocusStory from "./PopupInputFocus" ;
99import ModalStory from "./Modal" ;
1010import Menu from "./Menu" ;
11- import ControlledPopup from "./Controlledpopup" ;
11+ import ControlledModal from "./ControlledModal" ;
12+ import ControlledTooltip from "./ControlledTooltip" ;
13+
1214import CellTablePopupStory from "./CellTablePopup" ;
1315
1416const storyProps = { text : "Parcel Storybook" } ;
@@ -33,8 +35,12 @@ export default [
3335 component : Centred ( ( ) => < button > Test without props</ button > )
3436 } ,
3537 {
36- name : "Controlled Popup Component" , // without props
37- component : Centred ( ControlledPopup )
38+ name : "Controlled Modal Component" , // without props
39+ component : Centred ( ControlledModal )
40+ } ,
41+ {
42+ name : "Controlled Tooltip Component" , // without props
43+ component : Centred ( ControlledTooltip )
3844 } ,
3945 {
4046 name : "Menu Component" , // without props
You can’t perform that action at this time.
0 commit comments