How to use isomorphic-style-loader - 10 common examples

To help you get started, we’ve selected a few isomorphic-style-loader 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 elmadev / elmaonline-site / src / pages / home / Home.js View on Github external
? 'Loading...'
                    : getReplays.map(i => (
                        
                      ))}
                
              
            
          
        
      
    );
  }
}

export default compose(
  withStyles(s),
  graphql(homeQuery),
)(Home); // place the query object in the graphql decorator here so it's available in the this.props object
github phoomparin / FlipED / src / components / Layout / index.js View on Github external
export const Root = connect(mapStateToProps, mapDispatchToProps)(props => (
  <div>
    {props.children}
    
  </div>
))

export default withStyles(s)(Layout)
github insoftpub / storefront / src / components / ui / common / Register / Register.jsx View on Github external
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

import React, { Component, PropTypes } from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './Register.scss';
import Form from '../Form';
import { routes } from '../../../../config';
import getRegisterItems from './forms/register';

@withStyles(s)
class Register extends Component {
    static contextTypes = {
        executeAction: PropTypes.func.isRequired,
        getUserAgent: PropTypes.func.isRequired
    };

    state = {
        errors: null
    };

    handleSubmit = values => {
        this.setState({ loading: true });

        this.context.executeAction('user/register', values)
            .then(user => {
                this.context.executeAction('email/send', {
github alex-saunders / ecmasyntax.io / src / client / js / components / drawer / search-filters / search-filters.jsx View on Github external
<div>
          { this.mapFilters() }
        </div>
      
    );
  }
}

SearchFilters.propTypes = {
  activePages: PropTypes.array.isRequired,
  currFilters: PropTypes.array.isRequired,
  addFilter: PropTypes.func.isRequired,
  removeFilter: PropTypes.func.isRequired,
};

export default withStyles(s)(SearchFilters);
github LearningLocker / learninglocker / ui / src / components / OptionList / index.js View on Github external
<div>
        <div>
          {displayEmptyInfo ? this.renderEmptyInfo(styles) : this.renderOptions(styles)}
          {children ? (
            <div>
              <div>
              {children}
            </div>
          ) : null}
        </div>
      </div>
    );
  }
}

export default withStyles(styles)(OptionList);
</div>
github labzero / lunch / src / components / Notification / NotificationContent / VoteDeleted / VoteDeleted.js View on Github external
);
};

VoteDeleted.propTypes = {
  loggedIn: PropTypes.bool.isRequired,
  user: PropTypes.string,
  restaurantName: PropTypes.string.isRequired,
  showMapAndInfoWindow: PropTypes.func.isRequired
};

VoteDeleted.defaultProps = {
  user: ''
};

export default withStyles(s)(VoteDeleted);
github labzero / lunch / src / components / Notification / NotificationContent / VotePosted / VotePosted.js View on Github external
);
};

VotePosted.propTypes = {
  loggedIn: PropTypes.bool.isRequired,
  user: PropTypes.string,
  restaurantName: PropTypes.string.isRequired,
  showMapAndInfoWindow: PropTypes.func.isRequired
};

VotePosted.defaultProps = {
  user: ''
};

export default withStyles(s)(VotePosted);
github fechy / retropie-web-gui / src / routes / home / Home.js View on Github external
<li>
                
                  <i>
                  <p>Systems</p>
                
              </i></li><i>
            
          
        
      
    )
  }
}

export default withStyles(s)(Home);
</i>
github insoftpub / storefront / src / components / ui / common / Tab / Tab.jsx View on Github external
* SOFTWARE.
 */

import React from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './Tab.scss';

function Tab({ children }) {
    return (
        <div>
            {children}
        </div>
    );
}

export default withStyles(s)(Tab);
github phoomparin / FlipED / src / components / TextField / index.js View on Github external
)

export const TextArea = withStyles(s)(props =&gt; (
  <div style="{props.style}">
    <textarea style="{{background:">    &lt;span className={s.bar} /&gt;
    &lt;label className={s.label}&gt;{props.label}&lt;/label&gt;
  &lt;/div&gt;
))

export default withStyles(s)(TextField)
</textarea></div>

isomorphic-style-loader

CSS style loader for Webpack optimized for critical path CSS rendering and isomoprhic web apps

MIT
Latest version published 17 days ago

Package Health Score

87 / 100
Full package analysis