-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
55 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.PhaseItemDescriptionText p { | ||
font-size: small; | ||
text-align: center; | ||
} |
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,36 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import InfoIcon from '@material-ui/icons/Info'; | ||
import Text from '../common/Text'; | ||
import './PhaseItemDescription.css'; | ||
|
||
const style = { | ||
marginTop: '1rem', | ||
marginBottom: '1rem', | ||
flexDirection: 'row', | ||
display: 'flex', | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
}; | ||
|
||
const PhaseItemDescription = ({ description }) => { | ||
if (description && description !== '') { | ||
return ( | ||
<div style={style}> | ||
<InfoIcon color="primary" /> | ||
<Text content={description} className="PhaseItemDescriptionText" /> | ||
</div> | ||
); | ||
} | ||
return null; | ||
}; | ||
|
||
PhaseItemDescription.propTypes = { | ||
description: PropTypes.string, | ||
}; | ||
|
||
PhaseItemDescription.defaultProps = { | ||
description: '', | ||
}; | ||
|
||
export default PhaseItemDescription; |
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