forked from Semantic-Org/Semantic-UI-React
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8e59c02
commit 5cd1ae6
Showing
309 changed files
with
2,163 additions
and
2,176 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"extends": [ | ||
"ta", | ||
"ta/frontend", | ||
"ta/frontend" | ||
] | ||
} |
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
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,31 +1,31 @@ | ||
import React, {Component, PropTypes} from 'react'; | ||
import {Segment} from 'stardust'; | ||
import exampleContext from 'docs/app/utils/ExampleContext'; | ||
import React, { Component, PropTypes } from 'react' | ||
import { Segment } from 'stardust' | ||
import exampleContext from 'docs/app/utils/ExampleContext' | ||
|
||
export default class ComponentExamples extends Component { | ||
static propTypes = { | ||
name: PropTypes.string | ||
name: PropTypes.string, | ||
}; | ||
|
||
render() { | ||
const examples = exampleContext.keys() | ||
.filter(path => path.includes(`/${this.props.name}Examples.js`)) | ||
.map((path, i) => { | ||
const Example = exampleContext(path); | ||
return <Example key={i} />; | ||
}); | ||
const Example = exampleContext(path) | ||
return <Example key={i} /> | ||
}) | ||
|
||
const content = ( | ||
<Segment className='basic vertical'> | ||
<h2 className='ui header'>Examples</h2> | ||
{examples} | ||
</Segment> | ||
); | ||
) | ||
|
||
return ( | ||
<div className='stardust-examples'> | ||
{!!examples.length && content} | ||
</div> | ||
); | ||
) | ||
} | ||
} |
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
Oops, something went wrong.