-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
43 changed files
with
797 additions
and
674 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
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
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,58 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { connect } from 'react-redux'; | ||
|
||
import { AboutModal } from 'patternfly-react'; | ||
|
||
import Store from '../../redux/store'; | ||
|
||
import { aboutTypes } from '../../redux/constants'; | ||
import logo from '../../styles/images/Red_Hat_logo.svg'; | ||
import productTitle from '../../styles/images/title.svg'; | ||
|
||
class About extends React.Component { | ||
|
||
closeAbout() { | ||
Store.dispatch({ type: aboutTypes.ABOUT_DIALOG_CLOSE }); | ||
} | ||
|
||
render() { | ||
const { showAbout } = this.props; | ||
|
||
return ( | ||
<AboutModal | ||
key="aboutModal" | ||
show={showAbout} | ||
onHide={this.closeAbout} | ||
productTitle={ | ||
<img src={productTitle} alt="Red Hat Entitlements Reporting"/> | ||
} | ||
logo={logo} | ||
altLogo="RH ER" | ||
trademarkText="Copyright (c) 2018 Red Hat Inc." | ||
> | ||
<AboutModal.Versions> | ||
<AboutModal.VersionItem label="Label" versionText="Version"/> | ||
<AboutModal.VersionItem label="Label" versionText="Version"/> | ||
<AboutModal.VersionItem label="Label" versionText="Version"/> | ||
<AboutModal.VersionItem label="Label" versionText="Version"/> | ||
<AboutModal.VersionItem label="Label" versionText="Version"/> | ||
<AboutModal.VersionItem label="Label" versionText="Version"/> | ||
<AboutModal.VersionItem label="Label" versionText="Version"/> | ||
</AboutModal.Versions> | ||
</AboutModal> | ||
); | ||
} | ||
} | ||
|
||
About.propTypes = { | ||
showAbout: PropTypes.bool | ||
} | ||
|
||
function mapStateToProps(state, ownProps) { | ||
return { | ||
showAbout: state.about.show | ||
}; | ||
}; | ||
|
||
export default connect(mapStateToProps)(About); |
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
Oops, something went wrong.