diff --git a/source/components/SearchButton.js b/source/components/SearchButton.js index 361782f3e..4c202fa1c 100644 --- a/source/components/SearchButton.js +++ b/source/components/SearchButton.js @@ -1,9 +1,15 @@ import React, { Component } from 'react' +import { connect } from 'react-redux' import './SearchButton.css' import Overlay from './Overlay' import { SearchBar } from './pages/RulesList' import withColours from 'Components/withColours' +@connect( + state => ({ + flatRules: state.flatRules + }) +) @withColours export default class SearchButton extends Component { componentDidMount() { @@ -27,12 +33,13 @@ export default class SearchButton extends Component { } close = () => this.setState({ visible: false }) render() { + let { flatRules } = this.props return (
{this.state.visible ? (

Chercher une règle

- +
) : (