How to use the react-jss function in react-jss

To help you get started, we’ve selected a few react-jss 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 nordnet / nordnet-ui-kit / src / components / input / input-default.jsx View on Github external
hasWarning: PropTypes.bool,
  helpText: PropTypes.node,
  leftAddon: PropTypes.node,
  rightAddon: PropTypes.node,
  /** Only used when type === textarea */
  lineCount: PropTypes.number, // eslint-disable-line
};

InputDefault.defaultProps = {
  type: 'text',
  variant: 'primary',
  lineCount: 3,
};

export { InputDefault as Component, styles };
export default injectSheet(styles, { injectTheme: true })(InputDefault);
github wavesplatform / wavesplatform.com / src / common / components / NumeralDemo / index.jsx View on Github external
);

NumeralDemo.defaultProps = {
  iconColor: 'primary-500',
  number: '123123',
};

NumeralDemo.propTypes = {
  number: PropTypes.number.isRequired,
  iconName: PropTypes.string.isRequired,
  text: PropTypes.string,
};

export default injectSheet(styles)(NumeralDemo);
github wavesplatform / wavesplatform.com / src / common / components / Navigation / lib / desktop / index.jsx View on Github external
>
        <a href="{link.href}">
          {link.text}
        </a>
      
    ))}
  
);

export default injectSheet(styles)(DesktopNav);
github cloudogu / smeagol / src / main / js / repository / components / GeneralInformation.js View on Github external
class GeneralInformation extends React.Component {

    render() {
        const { classes, t } = this.props;
        return (
            <div>
                <p>{t('general-information_welcome')}</p>
                <p>
            </p></div>
        );
    }

}

export default translate()(injectSheet(styles)(GeneralInformation));
github sloth-tools / sloth-app / app / containers / PackagesSelectionScene.js View on Github external
<ul>
          {this.renderPackages()}
        </ul>
      
    );
  }
}

const mapActions = dispatch =&gt; bindActionCreators(actions, dispatch);
const mapState = store =&gt; ({
  role: store.roles.selectedRole,
  packages: store.packages.packages,
});

export default connect(mapState, mapActions)(
  injectSheet(styles)(PackagesSelectionScene),
);
github cloudogu / smeagol / src / main / js / Loading.js View on Github external
render() {
        const { classes } = this.props;
        return (
            <div>
                <div>
                    
                    Loading ...
                </div>
            </div>
        );
    }

}

export default injectSheet(styles)(Loading);
github frontcraft / react-standalone-form / src / default / Switches.js View on Github external
Switches.propTypes = {
  name: PropTypes.string.isRequired,
  value: PropTypes.oneOfType([PropTypes.string, PropTypes.array]),
  required: PropTypes.bool,
  setValue: PropTypes.func.isRequired,
  options: PropTypes.arrayOf(PropTypes.oneOfType([
    PropTypes.string,
    PropTypes.shape({
      label: PropTypes.node,
      value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
    }),
  ])),
}

export default withFormControl(withStyles(switchTheme)(Switches))
github rizalibnu / react-pwa-wwwid / src / components / App.jsx View on Github external
<div>
              <div>
                <span>Built with ♥ in Jakarta &amp; Cilacap</span>
                <a rel="noopener noreferrer" href="http://rizalibnu.com">
                  rizalibnu.com
                </a>
              </div>
            </div>
          
        
      
    );
  }
}

export default injectSheet(styles)(App);
github wavesplatform / wavesplatform.com / src / common / containers / Products / Wallet / index.jsx View on Github external
<section>
        
          }
            eventPage="ProductWallet"
            eventSource="HowToWallet"
          /&gt;
        
      </section>
    
  
);

const App = injectSheet(styles)(PageLayout);
export default App;