From 3ba3a30f74de7506f6caff466b465bb8cc38f102 Mon Sep 17 00:00:00 2001 From: Laurent Bossavit Date: Thu, 29 Mar 2018 15:11:22 +0200 Subject: [PATCH] =?UTF-8?q?:alien:=20R=C3=A9pare=20la=20recherche=20de=20r?= =?UTF-8?q?=C3=A8gles?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/components/SearchButton.js | 9 ++++++++- source/components/pages/RulesList.js | 4 +++- 2 files changed, 11 insertions(+), 2 deletions(-) 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

- +
) : (