Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add translate calls to strings in SectionHeader docs #1536

Merged
merged 2 commits into from
Dec 14, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions client/components/section-header/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ render: function() {
return (
<SectionHeader label={ this.translate( 'Team' ) }>
<Button compact>
Manage
{ this.translate( 'Manage' ) }
</Button>
<Button
compact
onClick={ function() {
console.log( 'Clicked Add button' );
} }
>
Add
{ this.translate( 'Add' ) }
</Button>
</SectionHeader>
);
Expand Down
10 changes: 5 additions & 5 deletions client/components/section-header/docs/example.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var React = require( 'react' );
*/
var SectionHeader = require( 'components/section-header' ),
Button = require( 'components/button' );

var Cards = React.createClass( {
displayName: 'SectionHeader',

Expand All @@ -21,20 +21,20 @@ var Cards = React.createClass( {
<a href="/devdocs/design/section-header">Section Header</a>
</h2>

<SectionHeader label="Team" count={ 10 }>
<SectionHeader label={ this.translate( 'Team' ) } count={ 10 }>
<Button compact primary>
Primary Action
{ this.translate( 'Primary Action' ) }
</Button>
<Button compact>
Manage
{ this.translate( 'Manage' ) }
</Button>
<Button
compact
onClick={ function() {
alert( 'Clicked add button' );
} }
>
Add
{ this.translate( 'Add' ) }
</Button>
</SectionHeader>
</div>
Expand Down