Skip to content

Commit

Permalink
Fix className usage for custom element. See facebook/react#4933
Browse files Browse the repository at this point in the history
  • Loading branch information
Itee committed Feb 20, 2018
1 parent 580882f commit 9afdbe7
Show file tree
Hide file tree
Showing 120 changed files with 123 additions and 123 deletions.
8 changes: 4 additions & 4 deletions sources/uis/displays/bars/TAppBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ class TAppBar extends React.Component {
}

return (
<t-app-bar id={_id} style={_style} className={'tAppBar'}>
<t-app-bar-left style={_subStyle} className={'tAppBarPart tAppBarLeft'}>
<t-app-bar id={_id} style={_style} class={'tAppBar'}>
<t-app-bar-left style={_subStyle} class={'tAppBarPart tAppBarLeft'}>
{left}
</t-app-bar-left>
<t-app-bar-center style={_subStyle} className={'tAppBarPart tAppBarLCenter'}>
<t-app-bar-center style={_subStyle} class={'tAppBarPart tAppBarLCenter'}>
{center}
</t-app-bar-center>
<t-app-bar-right style={_subStyle} className={'tAppBarPart tAppBarLRight'}>
<t-app-bar-right style={_subStyle} class={'tAppBarPart tAppBarLRight'}>
{right}
</t-app-bar-right>
</t-app-bar>
Expand Down
2 changes: 1 addition & 1 deletion sources/uis/displays/bars/TStatusBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class TStatusBar extends React.Component {
}

return (
<t-status-bar id={_id} style={_style} className={'tStatusBar'}>
<t-status-bar id={_id} style={_style} class={'tStatusBar'}>
{children}
</t-status-bar>
)
Expand Down
2 changes: 1 addition & 1 deletion sources/uis/displays/bars/TTitleBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class TTitleBar extends React.Component {
const _class = ( className ) ? `tTitleBar ${className}` : 'tTitleBar'

return (
<t-title-bar ref={( container ) => {this._container = container}} id={_id} style={_style} className={_class}></t-title-bar>
<t-title-bar ref={( container ) => {this._container = container}} id={_id} style={_style} class={_class}></t-title-bar>
)

}
Expand Down
2 changes: 1 addition & 1 deletion sources/uis/displays/bars/TToolBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class TToolBar extends React.Component {
}

return (
<t-tool-bar id={_id} style={_style} className={_class}></t-tool-bar>
<t-tool-bar id={_id} style={_style} class={_class}></t-tool-bar>
)

}
Expand Down
2 changes: 1 addition & 1 deletion sources/uis/displays/bases/TAvatar.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class TAvatar extends React.Component {
const _class = ( className ) ? `tAvatar ${className}` : 'tAvatar'

return (
<t-avatar ref={( container ) => {this._container = container}} id={_id} style={_style} className={_class}></t-avatar>
<t-avatar ref={( container ) => {this._container = container}} id={_id} style={_style} class={_class}></t-avatar>
)

}
Expand Down
2 changes: 1 addition & 1 deletion sources/uis/displays/bases/TBadge.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class TBadge extends React.Component {
const _class = ( className ) ? `tBadge ${className}` : 'tBadge'

return (
<t-badge ref={( container ) => {this._container = container}} id={_id} style={_style} className={_class}></t-badge>
<t-badge ref={( container ) => {this._container = container}} id={_id} style={_style} class={_class}></t-badge>
)

}
Expand Down
2 changes: 1 addition & 1 deletion sources/uis/displays/bases/TCalendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class TCalendar extends React.Component {
const _class = ( className ) ? `tCalendar ${className}` : 'tCalendar'

return (
<t-calendar ref={( container ) => {this._container = container}} id={_id} style={_style} className={_class}></t-calendar>
<t-calendar ref={( container ) => {this._container = container}} id={_id} style={_style} class={_class}></t-calendar>
)

}
Expand Down
2 changes: 1 addition & 1 deletion sources/uis/displays/bases/TCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class TCard extends React.Component {
const _class = ( className ) ? `tCard ${className}` : 'tCard'

return (
<t-card ref={( container ) => {this._container = container}} id={_id} style={_style} className={_class}></t-card>
<t-card ref={( container ) => {this._container = container}} id={_id} style={_style} class={_class}></t-card>
)

}
Expand Down
2 changes: 1 addition & 1 deletion sources/uis/displays/bases/TCode.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class TCode extends React.Component {
const _class = ( className ) ? `tCode ${className}` : 'tCode'

return (
<t-code ref={( container ) => {this._container = container}} id={_id} style={_style} className={_class}></t-code>
<t-code ref={( container ) => {this._container = container}} id={_id} style={_style} class={_class}></t-code>
)

}
Expand Down
2 changes: 1 addition & 1 deletion sources/uis/displays/bases/TDateTime.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class TDateTime extends React.Component {
const _style = {}

return (
<t-date-time id={_id} style={_style} className={_class} />
<t-date-time id={_id} style={_style} class={_class} />
)

}
Expand Down
2 changes: 1 addition & 1 deletion sources/uis/displays/bases/TDivider.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class TDivider extends React.Component {
const _class = ( className ) ? `tDivider ${className}` : 'tDivider'

return (
<t-divider id={_id} style={_style} className={_class} role={'separator'}></t-divider>
<t-divider id={_id} style={_style} class={_class} role={'separator'}></t-divider>
)

}
Expand Down
2 changes: 1 addition & 1 deletion sources/uis/displays/bases/TErrorCatcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class TErrorCatcher extends React.Component {

if ( this.state.error ) {
return (
<t-error-catcher ref={( container ) => {this._container = container}} id={_id} style={_style} className={_class}>
<t-error-catcher ref={( container ) => {this._container = container}} id={_id} style={_style} class={_class}>
<h1>Error: {this.state.error.toString()}</h1>
<div>Info: {this.state.info.toString()} </div>
</t-error-catcher>
Expand Down
2 changes: 1 addition & 1 deletion sources/uis/displays/bases/TFlag.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class TFlag extends React.Component {
const _class = ( className ) ? `tFlag ${className}` : 'tFlag'

return (
<t-flag ref={( container ) => {this._container = container}} id={_id} style={_style} className={_class}></t-flag>
<t-flag ref={( container ) => {this._container = container}} id={_id} style={_style} class={_class}></t-flag>
)

}
Expand Down
2 changes: 1 addition & 1 deletion sources/uis/displays/bases/TGraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class TGraph extends React.Component {
const _class = ( className ) ? `tGraph ${className}` : 'tGraph'

return (
<t-graph ref={( container ) => {this._container = container}} id={_id} style={_style} className={_class}></t-graph>
<t-graph ref={( container ) => {this._container = container}} id={_id} style={_style} class={_class}></t-graph>
)

}
Expand Down
2 changes: 1 addition & 1 deletion sources/uis/displays/bases/THeading.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class THeading extends React.Component {
const _class = ( className ) ? `tHeading ${className}` : 'tHeading'

return (
<t-heading ref={( container ) => {this._container = container}} id={_id} style={_style} className={_class}></t-heading>
<t-heading ref={( container ) => {this._container = container}} id={_id} style={_style} class={_class}></t-heading>
)

}
Expand Down
2 changes: 1 addition & 1 deletion sources/uis/displays/bases/TIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class TIcon extends React.Component {
const _class = ( className ) ? `tIcon ${className}` : 'tIcon'

return (
<t-icon ref={( container ) => {this._container = container}} id={_id} style={_style} className={_class}></t-icon>
<t-icon ref={( container ) => {this._container = container}} id={_id} style={_style} class={_class}></t-icon>
)

}
Expand Down
2 changes: 1 addition & 1 deletion sources/uis/displays/bases/TLabel.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class TLabel extends React.Component {
const _class = ( className ) ? `tLabel ${className}` : 'tLabel'

return (
<t-label ref={( container ) => {this._container = container}} id={_id} style={_style} className={_class}></t-label>
<t-label ref={( container ) => {this._container = container}} id={_id} style={_style} class={_class}></t-label>
)

}
Expand Down
2 changes: 1 addition & 1 deletion sources/uis/displays/bases/TLegend.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class TLegend extends React.Component {
const _class = ( className ) ? `tLegend ${className}` : 'tLegend'

return (
<t-legend ref={( container ) => {this._container = container}} id={_id} style={_style} className={_class}></t-legend>
<t-legend ref={( container ) => {this._container = container}} id={_id} style={_style} class={_class}></t-legend>
)

}
Expand Down
2 changes: 1 addition & 1 deletion sources/uis/displays/bases/TLink.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class TLink extends React.Component {
const _class = ( className ) ? `tLink ${className}` : 'tLink'

return (
<t-link ref={( container ) => {this._container = container}} id={_id} style={_style} className={_class}></t-link>
<t-link ref={( container ) => {this._container = container}} id={_id} style={_style} class={_class}></t-link>
)

}
Expand Down
2 changes: 1 addition & 1 deletion sources/uis/displays/bases/TParagraphe.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class TParagraphe extends React.Component {
const _class = ( className ) ? `tParagraphe ${className}` : 'tParagraphe'

return (
<t-paragraphe ref={( container ) => {this._container = container}} id={_id} style={_style} className={_class}></t-paragraphe>
<t-paragraphe ref={( container ) => {this._container = container}} id={_id} style={_style} class={_class}></t-paragraphe>
)

}
Expand Down
2 changes: 1 addition & 1 deletion sources/uis/displays/bases/TProgress.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class TProgress extends React.Component {
const _class = ( className ) ? `tProgress ${className}` : 'tProgress'

return (
<t-progress ref={( container ) => {this._container = container}} id={_id} style={_style} className={_class}></t-progress>
<t-progress ref={( container ) => {this._container = container}} id={_id} style={_style} class={_class}></t-progress>
)

}
Expand Down
2 changes: 1 addition & 1 deletion sources/uis/displays/bases/TQuote.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class TQuote extends React.Component {
const _class = ( className ) ? `tQuote ${className}` : 'tQuote'

return (
<t-quote ref={( container ) => {this._container = container}} id={_id} style={_style} className={_class}></t-quote>
<t-quote ref={( container ) => {this._container = container}} id={_id} style={_style} class={_class}></t-quote>
)

}
Expand Down
2 changes: 1 addition & 1 deletion sources/uis/displays/bases/TSpin.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class TSpin extends React.Component {
const _class = ( className ) ? `tSpin ${className}` : 'tSpin'

return (
<t-spin ref={( container ) => {this._container = container}} id={_id} style={_style} className={_class}></t-spin>
<t-spin ref={( container ) => {this._container = container}} id={_id} style={_style} class={_class}></t-spin>
)

}
Expand Down
2 changes: 1 addition & 1 deletion sources/uis/displays/bases/TTag.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class TTag extends React.Component {
const _class = ( className ) ? `tTag ${className}` : 'tTag'

return (
<t-tag ref={( container ) => {this._container = container}} id={_id} style={_style} className={_class}></t-tag>
<t-tag ref={( container ) => {this._container = container}} id={_id} style={_style} class={_class}></t-tag>
)

}
Expand Down
2 changes: 1 addition & 1 deletion sources/uis/displays/bases/TTile.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class TTile extends React.Component {
const _class = ( className ) ? `tTile ${className}` : 'tTile'

return (
<t-tile ref={( container ) => {this._container = container}} id={_id} style={_style} className={_class}></t-tile>
<t-tile ref={( container ) => {this._container = container}} id={_id} style={_style} class={_class}></t-tile>
)

}
Expand Down
2 changes: 1 addition & 1 deletion sources/uis/displays/bases/TTimeLine.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class TTimeLine extends React.Component {
const _class = ( className ) ? `tTimeLine ${className}` : 'tTimeLine'

return (
<t-time-line ref={( container ) => {this._container = container}} id={_id} style={_style} className={_class}></t-time-line>
<t-time-line ref={( container ) => {this._container = container}} id={_id} style={_style} class={_class}></t-time-line>
)

}
Expand Down
2 changes: 1 addition & 1 deletion sources/uis/displays/bases/TToolTip.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class TToolTip extends React.Component {
const _class = ( className ) ? `tToolTip ${className}` : 'tToolTip'

return (
<t-tool-tip ref={( container ) => {this._container = container}} id={_id} style={_style} className={_class}></t-tool-tip>
<t-tool-tip ref={( container ) => {this._container = container}} id={_id} style={_style} class={_class}></t-tool-tip>
)

}
Expand Down
2 changes: 1 addition & 1 deletion sources/uis/displays/collections/TAccordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class TAccordion extends React.Component {
const _class = ( className ) ? `tAccordion ${className}` : 'tAccordion'

return (
<t-accordion ref={( container ) => {this._container = container}} id={_id} style={_style} className={_class}></t-accordion>
<t-accordion ref={( container ) => {this._container = container}} id={_id} style={_style} class={_class}></t-accordion>
)

}
Expand Down
2 changes: 1 addition & 1 deletion sources/uis/displays/collections/TCollapse.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class TCollapse extends React.Component {
const _class = ( className ) ? `tCollapse ${className}` : 'tCollapse'

return (
<t-collapse ref={( container ) => {this._container = container}} id={_id} style={_style} className={_class}></t-collapse>
<t-collapse ref={( container ) => {this._container = container}} id={_id} style={_style} class={_class}></t-collapse>
)

}
Expand Down
2 changes: 1 addition & 1 deletion sources/uis/displays/collections/TFeed.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class TFeed extends React.Component {
const _class = ( className ) ? `tFeed ${className}` : 'tFeed'

return (
<t-feed ref={( container ) => {this._container = container}} id={_id} style={_style} className={_class}></t-feed>
<t-feed ref={( container ) => {this._container = container}} id={_id} style={_style} class={_class}></t-feed>
)

}
Expand Down
2 changes: 1 addition & 1 deletion sources/uis/displays/collections/TList.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class TList extends React.Component {
const _class = ( className ) ? `tList ${className}` : 'tList'

return (
<t-list ref={( container ) => {this._container = container}} id={_id} style={_style} className={_class}></t-list>
<t-list ref={( container ) => {this._container = container}} id={_id} style={_style} class={_class}></t-list>
)

}
Expand Down
2 changes: 1 addition & 1 deletion sources/uis/displays/docks/TDock.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class TDock extends React.Component {
const _class = ( className ) ? `tDock ${className}` : 'tDock'

return (
<t-dock ref={( container ) => {this._container = container}} id={_id} style={_style} className={_class}></t-dock>
<t-dock ref={( container ) => {this._container = container}} id={_id} style={_style} class={_class}></t-dock>
)

}
Expand Down
2 changes: 1 addition & 1 deletion sources/uis/displays/layouts/TCentererLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class TCentererLayout extends React.Component {
const _class = `tCentererLayout ${className}` // container justified-container

return (
<t-centerer-layout id={_id} style={_style} className={_class}>
<t-centerer-layout id={_id} style={_style} class={_class}>
{children}
</t-centerer-layout>
)
Expand Down
2 changes: 1 addition & 1 deletion sources/uis/displays/layouts/TGridLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class TGridLayout extends React.Component {
const _class = ( className ) ? `tGridLayout ${className}` : 'tGridLayout'

return (
<t-grid-layout ref={( container ) => {this._container = container}} id={_id} style={_style} className={_class}></t-grid-layout>
<t-grid-layout ref={( container ) => {this._container = container}} id={_id} style={_style} class={_class}></t-grid-layout>
)

}
Expand Down
2 changes: 1 addition & 1 deletion sources/uis/displays/layouts/THorizontalLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class THorizontalLayout extends React.Component {
const _class = ( className ) ? `tHorizontalLayout ${className}` : 'tHorizontalLayout'

return (
<t-horizontal-layout id={_id} style={_style} className={_class}>
<t-horizontal-layout id={_id} style={_style} class={_class}>
{children}
</t-horizontal-layout>
)
Expand Down
2 changes: 1 addition & 1 deletion sources/uis/displays/layouts/TJustifiedLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class TJustifiedLayout extends React.Component {
const _class = ( className ) ? `tJustifiedLayout ${className}` : 'tJustifiedLayout'

return (
<t-justified-layout id={_id} style={_style} className={_class}>
<t-justified-layout id={_id} style={_style} class={_class}>
{children}
</t-justified-layout>
)
Expand Down
2 changes: 1 addition & 1 deletion sources/uis/displays/layouts/TLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class TLayout extends React.Component {
const _class = ( className ) ? `tLayout ${className}` : 'tLayout'

return (
<t-layout id={_id} style={_style} className={_class}>
<t-layout id={_id} style={_style} class={_class}>
{children}
</t-layout>
)
Expand Down
2 changes: 1 addition & 1 deletion sources/uis/displays/layouts/TVerticalLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class TVerticalLayout extends React.Component {
const _class = ( className ) ? `tVerticalLayout ${className}` : 'tVerticalLayout'

return (
<t-vertical-layout ref={( container ) => {this._container = container}} id={_id} style={_style} className={_class}></t-vertical-layout>
<t-vertical-layout ref={( container ) => {this._container = container}} id={_id} style={_style} class={_class}></t-vertical-layout>
)

}
Expand Down
2 changes: 1 addition & 1 deletion sources/uis/displays/medias/TAudio.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class TAudio extends React.Component {
const _class = ( className ) ? `tAudio ${className}` : 'tAudio'

return (
<t-audio ref={( container ) => {this._container = container}} id={_id} style={_style} className={_class}></t-audio>
<t-audio ref={( container ) => {this._container = container}} id={_id} style={_style} class={_class}></t-audio>
)

}
Expand Down
2 changes: 1 addition & 1 deletion sources/uis/displays/medias/TCarousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class TCarousel extends React.Component {
const _class = ( className ) ? `tCarousel ${className}` : 'tCarousel'

return (
<t-carousel ref={( container ) => {this._container = container}} id={_id} style={_style} className={_class}></t-carousel>
<t-carousel ref={( container ) => {this._container = container}} id={_id} style={_style} class={_class}></t-carousel>
)

}
Expand Down
2 changes: 1 addition & 1 deletion sources/uis/displays/medias/TImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class TImage extends React.Component {
const _class = ( className ) ? `tImage ${className}` : 'tImage'

return (
<t-image ref={( container ) => {this._container = container}} id={_id} style={_style} className={_class}></t-image>
<t-image ref={( container ) => {this._container = container}} id={_id} style={_style} class={_class}></t-image>
)

}
Expand Down
2 changes: 1 addition & 1 deletion sources/uis/displays/medias/TMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class TMap extends React.Component {
const _class = ( className ) ? `tMap ${className}` : 'tMap'

return (
<t-map ref={( container ) => {this._container = container}} id={_id} style={_style} className={_class}></t-map>
<t-map ref={( container ) => {this._container = container}} id={_id} style={_style} class={_class}></t-map>
)

}
Expand Down
2 changes: 1 addition & 1 deletion sources/uis/displays/medias/TParallax.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class TParallax extends React.Component {
const _class = ( className ) ? `tParallax ${className}` : 'tParallax'

return (
<t-parallax ref={( container ) => {this._container = container}} id={_id} style={_style} className={_class}></t-parallax>
<t-parallax ref={( container ) => {this._container = container}} id={_id} style={_style} class={_class}></t-parallax>
)

}
Expand Down
Loading

0 comments on commit 9afdbe7

Please sign in to comment.