summaryrefslogtreecommitdiff
path: root/web/src/pages/Stream.jsx
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2023-05-03 00:30:33 +0000
committerGerrit Code Review <review@openstack.org>2023-05-03 00:30:33 +0000
commit51194abf561de04972996199d825613a94cd3b2f (patch)
treead759bc813af0bb716135251da1e54135748c276 /web/src/pages/Stream.jsx
parentbbdbe81790f4926e5e00085309589a2c52e5230b (diff)
parent59cd5de78baa31150958e6d0d6733407c0e95805 (diff)
downloadzuul-51194abf561de04972996199d825613a94cd3b2f.tar.gz
Merge "web: add dark mode and theme selection"
Diffstat (limited to 'web/src/pages/Stream.jsx')
-rw-r--r--web/src/pages/Stream.jsx11
1 files changed, 8 insertions, 3 deletions
diff --git a/web/src/pages/Stream.jsx b/web/src/pages/Stream.jsx
index df2a2ad96..f058d29a2 100644
--- a/web/src/pages/Stream.jsx
+++ b/web/src/pages/Stream.jsx
@@ -31,7 +31,8 @@ class StreamPage extends React.Component {
static propTypes = {
match: PropTypes.object.isRequired,
location: PropTypes.object.isRequired,
- tenant: PropTypes.object
+ tenant: PropTypes.object,
+ preferences: PropTypes.object,
}
state = {
@@ -167,10 +168,11 @@ class StreamPage extends React.Component {
render () {
return (
- <PageSection variant={PageSectionVariants.light} >
+ <PageSection variant={this.props.preferences.darkMode ? PageSectionVariants.dark : PageSectionVariants.light}>
<Form inline>
<FormGroup controlId='stream'>
<FormControl
+ className="pf-c-form-control"
type='text'
placeholder='search'
onKeyPress={this.handleKeyPress}
@@ -201,4 +203,7 @@ class StreamPage extends React.Component {
}
-export default connect(state => ({tenant: state.tenant}))(StreamPage)
+export default connect(state => ({
+ tenant: state.tenant,
+ preferences: state.preferences,
+}))(StreamPage)