generated from RENCI/react-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
working version of the floating dialog component.
- Loading branch information
1 parent
f0da3b4
commit 3f0f758
Showing
2 changed files
with
31 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,26 @@ | ||
import React, { Fragment } from 'react'; | ||
import { Map } from '@components/map'; | ||
import BaseFloatingDialog from "@utils/dialog-utils"; | ||
// import SubObj from "@utils/subObj"; | ||
|
||
export const App = () => { | ||
return ( | ||
const subObj = () => { | ||
return ( | ||
<Fragment> | ||
<div> | ||
<br/> | ||
This is a dialog sub-component. | ||
<br/> | ||
</div> | ||
</Fragment> | ||
); | ||
}; | ||
|
||
const floaterArgs = {title: "The dialog title.", description: "The dialog description.", openDialogImmediately:true, "dialogObject": {...subObj()}}; | ||
|
||
return ( | ||
<Fragment> | ||
<BaseFloatingDialog title={"A title"} dialogText={"the dialog text"} openDialogImmediately={true}/> | ||
<BaseFloatingDialog {...floaterArgs} /> | ||
<Map /> | ||
</Fragment> | ||
); | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters