generated from amosproj/amos202Xss0Y-projname
-
Notifications
You must be signed in to change notification settings - Fork 2
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 #133 from amosproj/main
updating release branch with sprint 10 changes
- Loading branch information
Showing
30 changed files
with
525 additions
and
141 deletions.
There are no files selected for viewing
Binary file added
BIN
+180 KB
deliverables/2021-06-23 - AMOS SS2021 - Team 8 - Planning Document.pdf
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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 |
---|---|---|
@@ -1,51 +1,73 @@ | ||
import PropTypes from 'prop-types'; | ||
import React from 'react'; | ||
import slugs from 'resources/slugs'; | ||
import { Link } from 'react-router-dom'; | ||
import { useHistory } from 'react-router-dom'; | ||
|
||
/** | ||
* a divider Pannel for seperating search compoents and result components | ||
* and also providing the comparison feature by compare button | ||
* | ||
* @author Parham Gandomkar, Irem Toroslu, Julian Oelhaf | ||
* @author Parham Gandomkar, Irem Toroslu, Julian Oelhaf, Mani Anand | ||
*/ | ||
|
||
const NavbarComponent = (props) => { | ||
const history = useHistory(); | ||
if (!props.loadComparePage) { | ||
return ( | ||
<div className='navbar w3-row' vertical='center' horizontal='space-between'> | ||
<Link to={{ pathname: slugs.categories }}> | ||
<btn className='w3-col l1 m1 s1 w3-center'> | ||
<div className='navbar' vertical='center' horizontal='space-between'> | ||
{/* used the history.goback() function to go one step backward where it stores the previous steps including the prevs stage of clicking items on the sidebar */} | ||
|
||
<div className='BackButton'> | ||
<Link onClick={() => history.goBack()}> | ||
<i class='fa fa-chevron-left' aria-hidden='true' /> | ||
</btn> | ||
</Link> | ||
<b className='w3-col l6 m6 s4'>{props.scenarioName}</b> | ||
</Link> | ||
</div> | ||
<div className='NavbarTitle'> | ||
<b>{props.scenarioName}</b> | ||
</div> | ||
|
||
<Link to={{ pathname: slugs.details }} onClick={props.onExportClicked}> | ||
<pdfbtn className='w3-col l3 m3 s4'> | ||
<i className='fa fa-file-pdf-o w3-margin-right' aria-hidden='true'></i> | ||
Export Pdf | ||
</pdfbtn> | ||
<Link to={{ pathname: slugs.details }} onClick={props.onExportClick}> | ||
<div className='Pdfbtn'> | ||
<i className='fa fa-file-pdf-o ' aria-hidden='true' /> | ||
Export | ||
</div> | ||
</Link> | ||
<Link to={{ pathname: slugs.details }} onClick={props.onCompareClick}> | ||
<addbtn className='w3-col l2 m2 s2 w3-right'> | ||
<div className='Addbtn'> | ||
<i className='fa fa-fw fa-plus-circle' /> Add | ||
</addbtn> | ||
</div> | ||
</Link> | ||
</div> | ||
); | ||
} else { | ||
return ( | ||
<div className='navbar w3-row' vertical='center' horizontal='space-between'> | ||
<b className='w3-col l7 m7 s6'>{props.scenarioName}</b> | ||
<Link to={{ pathname: slugs.details }} onClick={props.onExportClicked}> | ||
<pdfbtn className='w3-col l5 m5 s6 w3-right'> | ||
<i className='fa fa-file-pdf-o w3-margin-right' aria-hidden='true'></i> | ||
Export Pdf | ||
</pdfbtn> | ||
<div className='navbar'> | ||
<div className='NavbarTitle'> | ||
<b>{props.scenarioName}</b> | ||
</div> | ||
<Link to={{ pathname: slugs.details }} onClick={props.onExportClick}> | ||
<div className='Pdfbtn'> | ||
<i className='fa fa-file-pdf-o ' aria-hidden='true'></i> | ||
Export | ||
</div> | ||
</Link> | ||
|
||
<Link to={{ pathname: slugs.details }} onClick={props.onCloseClick}> | ||
<div className='Closebtn '> | ||
<i className='fa fa-times-circle-o' aria-hidden='true'></i> | ||
</div> | ||
</Link> | ||
</div> | ||
); | ||
} | ||
}; | ||
|
||
NavbarComponent.propTypes = { | ||
loadComparePage: PropTypes.bool.isRequired, | ||
onCloseClick: PropTypes.func, | ||
onCompareClick: PropTypes.func, | ||
onExportClick: PropTypes.func.isRequired, | ||
scenarioName: PropTypes.string.isRequired | ||
}; | ||
|
||
export default NavbarComponent; |
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.