From d57d511897c706b83b39045869383e28313273c4 Mon Sep 17 00:00:00 2001 From: Alexander Fedyashov Date: Mon, 17 Jul 2017 00:34:53 +0300 Subject: [PATCH] docs(Search): fix examples (#1847) --- .../Examples/modules/Search/Types/SearchExampleCategory.js | 4 ++-- .../modules/Search/Types/SearchExampleCategoryCustom.js | 3 +-- .../Examples/modules/Search/Types/SearchExampleStandard.js | 4 ++-- .../modules/Search/Types/SearchExampleStandardCustom.js | 4 +--- docs/app/Examples/modules/Search/Types/index.js | 1 + .../modules/Search/Variations/SearchExampleAligned.js | 1 - .../Examples/modules/Search/Variations/SearchExampleFluid.js | 5 +---- .../Examples/modules/Search/Variations/SearchExampleInput.js | 4 +--- docs/app/Examples/modules/Search/Variations/index.js | 1 + 9 files changed, 10 insertions(+), 17 deletions(-) diff --git a/docs/app/Examples/modules/Search/Types/SearchExampleCategory.js b/docs/app/Examples/modules/Search/Types/SearchExampleCategory.js index 6f4631c560..c8fab292ca 100644 --- a/docs/app/Examples/modules/Search/Types/SearchExampleCategory.js +++ b/docs/app/Examples/modules/Search/Types/SearchExampleCategory.js @@ -28,9 +28,9 @@ export default class SearchExampleCategory extends Component { resetComponent = () => this.setState({ isLoading: false, results: [], value: '' }) - handleResultSelect = (e, result) => this.setState({ value: result.title }) + handleResultSelect = (e, { result }) => this.setState({ value: result.title }) - handleSearchChange = (e, value) => { + handleSearchChange = (e, { value }) => { this.setState({ isLoading: true, value }) setTimeout(() => { diff --git a/docs/app/Examples/modules/Search/Types/SearchExampleCategoryCustom.js b/docs/app/Examples/modules/Search/Types/SearchExampleCategoryCustom.js index dce44da82f..8dd5b1664f 100644 --- a/docs/app/Examples/modules/Search/Types/SearchExampleCategoryCustom.js +++ b/docs/app/Examples/modules/Search/Types/SearchExampleCategoryCustom.js @@ -4,8 +4,7 @@ import { Label } from 'semantic-ui-react' import SearchExampleCategory from './SearchExampleCategory' -const categoryRenderer = ({ name }) => -