-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #387 from BIDMCDigitalPsychiatry/issue-810
Issue 815 changes completed
- Loading branch information
Showing
15 changed files
with
427 additions
and
53 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
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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
|
||
import * as React from 'react'; | ||
import { Button, Modal } from 'react-bootstrap'; | ||
import i18n from "./../../i18n"; | ||
|
||
interface Props { | ||
show: boolean; | ||
modalClose(status:boolean):void; | ||
msg:string; | ||
language: string; | ||
} | ||
|
||
interface State { | ||
showStatus : boolean | ||
} | ||
|
||
export class InstructionModal extends React.Component<Props, State> { | ||
|
||
constructor(props: Props) { | ||
super(props); | ||
this.state = { | ||
showStatus : this.props.show | ||
} | ||
} | ||
|
||
// Handles modal close | ||
handleClose = () => { | ||
this.setState({ | ||
showStatus : false | ||
}); | ||
this.props.modalClose(false); | ||
} | ||
|
||
// Modal render function | ||
render() { | ||
return ( | ||
<Modal show={this.state.showStatus} onHide={this.handleClose} | ||
animation={false} | ||
size="lg" | ||
aria-labelledby="contained-modal-title-vcenter" | ||
centered={true}> | ||
<Modal.Body className='modal-body-section'>{this.props.msg}</Modal.Body> | ||
<Modal.Footer className=''> | ||
<Button onClick={this.handleClose}> | ||
{i18n.t("OK")} | ||
</Button> | ||
</Modal.Footer> | ||
</Modal> | ||
); | ||
} | ||
} |
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 |
---|---|---|
|
@@ -317,3 +317,9 @@ ol,ul { | |
opacity:0 | ||
} | ||
} | ||
|
||
.modal-body-section { | ||
padding: 15px !important; | ||
margin-bottom: 10px; | ||
font-size: 20px; | ||
} |
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
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
Oops, something went wrong.