-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove local search, DRY up examples
- Loading branch information
Showing
10 changed files
with
95 additions
and
499 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,7 @@ | ||
import _ from 'lodash' | ||
import faker from 'faker' | ||
import React from 'react' | ||
import { Search, Grid, Header } from 'stardust' | ||
|
||
const source = _.times(5, () => ({ | ||
title: faker.company.companyName(), | ||
description: faker.company.catchPhrase(), | ||
image: faker.internet.avatar(), | ||
price: faker.finance.amount(0, 100, 2, '$'), | ||
})) | ||
import BaseStandardExample from '../Types/Standard' | ||
|
||
const SearchAlignedExample = () => ( | ||
<Grid> | ||
<Grid.Column width={8}> | ||
<Search | ||
aligned='right' | ||
source={source} | ||
/> | ||
</Grid.Column> | ||
<Grid.Column width={8}> | ||
<Header>Options</Header> | ||
<pre>{JSON.stringify(source, null, 2)}</pre> | ||
</Grid.Column> | ||
</Grid> | ||
) | ||
const SearchAlignedExample = () => <BaseStandardExample aligned='right' /> | ||
|
||
export default SearchAlignedExample |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,7 @@ | ||
import _ from 'lodash' | ||
import faker from 'faker' | ||
import React from 'react' | ||
import { Search, Grid, Header } from 'stardust' | ||
|
||
const source = _.times(5, () => ({ | ||
title: faker.company.companyName(), | ||
description: faker.company.catchPhrase(), | ||
image: faker.internet.avatar(), | ||
price: faker.finance.amount(0, 100, 2, '$'), | ||
})) | ||
import BaseStandardExample from '../Types/Standard' | ||
|
||
const SearchFluidExample = () => ( | ||
<Grid> | ||
<Grid.Column width={8}> | ||
<Search | ||
fluid | ||
source={source} | ||
/> | ||
</Grid.Column> | ||
<Grid.Column width={8}> | ||
<Header>Options</Header> | ||
<pre>{JSON.stringify(source, null, 2)}</pre> | ||
</Grid.Column> | ||
</Grid> | ||
) | ||
const SearchFluidExample = () => <BaseStandardExample fluid /> | ||
|
||
export default SearchFluidExample |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.