From f98543260b10f85857c1e15a49a44a510b3424f1 Mon Sep 17 00:00:00 2001 From: Fabiano Brito Date: Mon, 11 Mar 2019 21:34:10 +0200 Subject: [PATCH 1/5] docs(Search): Implement own standard custom. --- .../Types/SearchExampleStandardCustom.js | 74 +++++++++++++++++-- 1 file changed, 69 insertions(+), 5 deletions(-) diff --git a/docs/src/examples/modules/Search/Types/SearchExampleStandardCustom.js b/docs/src/examples/modules/Search/Types/SearchExampleStandardCustom.js index ce4956a3d4..6e20fb7fb4 100644 --- a/docs/src/examples/modules/Search/Types/SearchExampleStandardCustom.js +++ b/docs/src/examples/modules/Search/Types/SearchExampleStandardCustom.js @@ -1,8 +1,15 @@ import PropTypes from 'prop-types' -import React from 'react' -import { Label } from 'semantic-ui-react' +import _ from 'lodash' +import faker from 'faker' +import React, { Component } from 'react' +import { Search, Grid, Header, Segment, Label } from 'semantic-ui-react' -import SearchExampleStandard from './SearchExampleStandard' +const source = _.times(5, () => ({ + title: faker.company.companyName(), + description: faker.company.catchPhrase(), + image: faker.internet.avatar(), + price: faker.finance.amount(0, 100, 2, '$'), +})) const resultRenderer = ({ title }) =>