How to use the utility/componentClassNames function in utility

To help you get started, we’ve selected a few utility examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Bytom / bytom-dashboard / src / features / accounts / components / AccountShow.jsx View on Github external
render() {
    const item = this.props.item
    const t = this.props.t

    let view
    if (item) {
      const title = <span>
        {t('account.account')}
        <code>{item.alias ? item.alias : item.id}</code>
      </span>

      view = <div>
        
              {t('account.newAddress')}
            ,
          ]}
        /&gt;

        
          </div>
github Bytom / bytom-dashboard / src / features / shared / components / PageTitle / PageTitle.jsx View on Github external
render() {
    const chevron = require('images/chevron.png')

    return(
      <div>
        <div>
          <div>
            <ul>
              {this.props.breadcrumbs.map(crumb =&gt;
                <li>
                  {!crumb.last &amp;&amp; 
                    {capitalize(crumb.name)}
                    <img src="{chevron}">
                  }

                  {crumb.last &amp;&amp; <span>
                    {this.props.title || crumb.name}
                  </span>}
                </li>
              )}
            </ul></div></div></div>
github Bytom / bytom-dashboard / src / features / shared / components / FormContainer / FormContainer.jsx View on Github external
render() {
    const t = this.props.t
    return(
      <div>
        

        <div>
          <div>
            <form>
              {this.props.children}

              
                {this.props.error &amp;&amp;
                  }

                {this.props.success &amp;&amp;
                  </form></div></div></div>
github Bytom / bytom-dashboard / src / features / shared / components / BaseList / BaseList.jsx View on Github external
const newButton = <button>
      + {t('crumbName.new')}
    </button>
    if (!this.props.skipCreate) {
      actions.push(newButton)
    }

    let header =
      


    const rootClassNames = componentClassNames(this, 'flex-container')

    if (this.props.noResults) {
      return(
        <div>
          {header}

          
</div>
github Bytom / bytom-dashboard / src / features / mockhsm / components / MnemonicStepper / MnemonicStepper.jsx View on Github external
render() {
    if (this.props.mnemonic.length === 0) {
      return 
    }
    const t = this.props.t

    return (
      <div>
        

          <div>
            <div>
              
                
                  
                  <button> this.props.succeeded()}
                  &gt;
                    {t('mnemonic.skip')}
                  </button></div></div></div>
github Bytom / bytom-dashboard / src / features / app / components / Loading / Loading.jsx View on Github external
render() {
    return (
      <div>
        <img src="{require('images/logo-shadowed.png')}">
        {this.props.children}
      </div>
    )
  }
}
github Bytom / bytom-dashboard / src / features / assets / components / AssetShow.jsx View on Github external
let view
    if (item) {
      const title = <span>
        { t('asset.asset') }
        <code>{item.alias ? item.alias :item.id}</code>
      </span>

      const time = (item.limitHeight-this.props.blockHeight) *2.5
      let assetLabel
      if(this.props.blockHeight{t('asset.issuableLabel',{time:time})}
      }else if(item.limitHeight&gt;0){
        assetLabel = <span>{t('asset.noIssuableLabel')}</span>
      }

      view = <div>
        {t('transaction.issue.issueAsset')},
          ]}
        /&gt;

        
          
            ]}
            items={[</div>
github Bytom / bytom-dashboard / src / features / core / components / CoreIndex / CoreIndex.jsx View on Github external
)
    }

    let networkStatusBlock = (
      <div>
        {/*<div>*/}
          {requestStatusBlock}
        {/*</div>*/}
      </div>
    )

    return (
      <div>
        
              <img src="{require('images/console-window.svg')}/">
            
          ]}
        /&gt;

        
          <div>
            {configBlock}
            {networkStatusBlock}
          </div>
        
      </div>
github Bytom / bytom-dashboard / src / features / shared / components / BaseList / EmptyList.jsx View on Github external
emptyBlock = <span>{t('emptyList.loading')}…</span>
    } else if (this.props.showFirstTimeFlow) {
      emptyBlock = <div>
        <span>
          {t('emptyList.noRecord', {objectName: this.props.objectName})}
        </span>
      </div>
    }

    const classNames = [
      'flex-container',
      styles.empty
    ]

    return (
      <div>
        {emptyImage &amp;&amp; <img src="{emptyImage}">}
        {emptyBlock}
      </div>
    )
  }
}
github Bytom / bytom-dashboard / src / features / console / components / ConsolePage.jsx View on Github external
render() {
    const lang = this.props.core.lang

    return (
      <div>
        
        
          
        
      </div>
    )
  }
}