Skip to content

Commit

Permalink
fix(Feed): update props and shorthand
Browse files Browse the repository at this point in the history
  • Loading branch information
levithomason committed Oct 1, 2016
1 parent a89545d commit 5b34ef2
Show file tree
Hide file tree
Showing 45 changed files with 1,027 additions and 687 deletions.
82 changes: 0 additions & 82 deletions docs/app/Examples/views/Feed/Content/AdditionalInformation.js

This file was deleted.

49 changes: 0 additions & 49 deletions docs/app/Examples/views/Feed/Content/Date.js

This file was deleted.

44 changes: 0 additions & 44 deletions docs/app/Examples/views/Feed/Content/DateSummary.js

This file was deleted.

47 changes: 47 additions & 0 deletions docs/app/Examples/views/Feed/Content/FeedExampleDate.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
import React from 'react'
import { Feed } from 'stardust'

const imageSrc = 'http://semantic-ui.com/images/avatar/small/jenny.jpg'

const Date = () => (
<Feed>
<Feed.Event>
<Feed.Label image={imageSrc} />
<Feed.Content>
<Feed.Date>3 days ago</Feed.Date>
<Feed.Summary>
You added <a>Jenny Hess</a> to your <a>coworker</a> group.
</Feed.Summary>
</Feed.Content>
</Feed.Event>

<Feed.Event>
<Feed.Label image={imageSrc} />
<Feed.Content>
<Feed.Date date='3 days ago' />
<Feed.Summary>
You added <a>Jenny Hess</a> to your <a>coworker</a> group.
</Feed.Summary>
</Feed.Content>
</Feed.Event>

<Feed.Event>
<Feed.Label image={imageSrc} />
<Feed.Content date='3 days ago'>
<Feed.Summary>
You added <a>Jenny Hess</a> to your <a>coworker</a> group.
</Feed.Summary>
</Feed.Content>
</Feed.Event>

<Feed.Event>
<Feed.Label image={imageSrc} />
<Feed.Content
date='3 days ago'
summary='You added Jenny Hess to your coworker group.'
/>
</Feed.Event>
</Feed>
)

export default Date
20 changes: 20 additions & 0 deletions docs/app/Examples/views/Feed/Content/FeedExampleDateContent.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import React from 'react'
import { Feed } from 'stardust'

const imageSrc = 'http://semantic-ui.com/images/avatar/small/jenny.jpg'

const DateContent = () => (
<Feed>
<Feed.Event>
<Feed.Label image={imageSrc} />
<Feed.Content>
<Feed.Date>3 days ago</Feed.Date>
<Feed.Summary>
You added <a>Jenny Hess</a> to your <a>coworker</a> group.
</Feed.Summary>
</Feed.Content>
</Feed.Event>
</Feed>
)

export default DateContent
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import React from 'react'
import { Feed } from 'stardust'

const imageSrc = 'http://semantic-ui.com/images/avatar/small/jenny.jpg'

const DateContentProps = () => (
<Feed>
<Feed.Event
image={imageSrc}
date='3 days ago'
summary='You added Jenny Hess to your coworker group.'
/>

<Feed.Event>
<Feed.Label image={imageSrc} />
<Feed.Content
date='3 days ago'
summary='You added Jenny Hess to your coworker group.'
/>
</Feed.Event>
</Feed>
)

export default DateContentProps
24 changes: 24 additions & 0 deletions docs/app/Examples/views/Feed/Content/FeedExampleDateProps.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import React from 'react'
import { Feed } from 'stardust'

const imageSrc = 'http://semantic-ui.com/images/avatar/small/jenny.jpg'

const DateProps = () => (
<Feed>
<Feed.Event
image={imageSrc}
date='3 days ago'
summary='You added Jenny Hess to your coworker group.'
/>

<Feed.Event>
<Feed.Label image={imageSrc} />
<Feed.Content
date='3 days ago'
summary='You added Jenny Hess to your coworker group.'
/>
</Feed.Event>
</Feed>
)

export default DateProps
21 changes: 21 additions & 0 deletions docs/app/Examples/views/Feed/Content/FeedExampleDateSummary.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import React from 'react'
import { Feed } from 'stardust'

const DateSummary = () => (
<Feed>
<Feed.Event>
<Feed.Label>
<img src='http://semantic-ui.com/images/avatar/small/jenny.jpg' />
</Feed.Label>
<Feed.Content>
<Feed.Summary>
You added <a>Jenny Hess</a> to your <a>coworker</a> group.

<Feed.Date>3 days ago</Feed.Date>
</Feed.Summary>
</Feed.Content>
</Feed.Event>
</Feed>
)

export default DateSummary
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import React from 'react'
import { Feed } from 'stardust'

const DateSummary = () => (
<Feed>
<Feed.Event
image='http://semantic-ui.com/images/avatar/small/jenny.jpg'
summary='You added Jenny Hess to your coworker group.'
date='3 days ago'
/>

<Feed.Event>
<Feed.Label image='http://semantic-ui.com/images/avatar/small/jenny.jpg' />
<Feed.Content
summary='You added Jenny Hess to your coworker group.'
date='3 days ago'
/>
</Feed.Event>
</Feed>
)

export default DateSummary
22 changes: 22 additions & 0 deletions docs/app/Examples/views/Feed/Content/FeedExampleExtraImages.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import React from 'react'
import { Feed } from 'stardust'

const AdditionalInformation = () => (
<Feed>
<Feed.Event>
<Feed.Label image='http://semantic-ui.com/images/avatar/small/helen.jpg' />
<Feed.Content>
<Feed.Date>3 days ago</Feed.Date>
<Feed.Summary>
<a>Helen Troy</a> added 2 photos
</Feed.Summary>
<Feed.Extra images>
<a><img src='http://semantic-ui.com/images/wireframe/image.png' /></a>
<a><img src='http://semantic-ui.com/images/wireframe/image.png' /></a>
</Feed.Extra>
</Feed.Content>
</Feed.Event>
</Feed>
)

export default AdditionalInformation
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import React from 'react'
import { Feed } from 'stardust'

const images = [
'http://semantic-ui.com/images/wireframe/image.png',
'http://semantic-ui.com/images/wireframe/image.png',
]

const ExtraImagesProps = () => (
<Feed>
<Feed.Event>
<Feed.Label image='http://semantic-ui.com/images/avatar/small/helen.jpg' />
<Feed.Content>
<Feed.Date>3 days ago</Feed.Date>
<Feed.Summary>
<a>Helen Troy</a> added 2 photos
</Feed.Summary>
<Feed.Extra images={images} />
</Feed.Content>
</Feed.Event>
</Feed>
)

export default ExtraImagesProps
Loading

0 comments on commit 5b34ef2

Please sign in to comment.