For example, to override the AppBar (https://material-ui-next.com/api/app-bar/) root class we can do the following:
1 - Add the property classes in the AppBar component:
<AppBar classes={{root: 'my-root-class'}}For example, to override the AppBar (https://material-ui-next.com/api/app-bar/) root class we can do the following:
1 - Add the property classes in the AppBar component:
<AppBar classes={{root: 'my-root-class'}}| #!/bin/bash | |
| # | |
| # NOTE: specify the absolutepath to the directory to use when | |
| # loading a plugin. '~' expansion is supported. | |
| # | |
| chunkc core::plugin_dir /usr/local/opt/chunkwm/share/chunkwm/plugins | |
| # |
| /** | |
| * Making promises | |
| */ | |
| let okPromise = Js.Promise.make((~resolve, ~reject as _) => [@bs] resolve("ok")); | |
| /* Simpler promise creation for static values */ | |
| Js.Promise.resolve("easy"); | |
| Js.Promise.reject(Invalid_argument("too easy")); |
| import express from 'express'; | |
| import React from 'react'; | |
| import ReactDOMServer from 'react-dom/server'; | |
| import App from './components/App'; | |
| import {flushServerSideRequires} from 'react-loadable'; | |
| let app = express(); | |
| let webpackStats = require('./output-webpack-stats.json'); |
| export function* signup (action) { | |
| const { email, password } = action | |
| try { | |
| const user = yield call(parseService.signup, email, password) | |
| yield put({ type: authActionTypes.SIGNUP_SUCCESS, user }) | |
| yield call(loginSuccess, user) | |
| } catch (err) { | |
| const error = err.message || err | |
| yield put({ type: authActionTypes.SIGNUP_FAILURE, error }) | |
| } |
| 'use strict'; | |
| var Octokat = require('octokat'); | |
| var extend = require('lodash/object/assign'); | |
| var defaults = { | |
| branchName: 'master', | |
| token: '', | |
| username: '', | |
| reponame: '' |
| // array utils | |
| // ================================================================================================= | |
| const combine = (...arrays) => [].concat(...arrays); | |
| const compact = arr => arr.filter(Boolean); | |
| const contains = (() => Array.prototype.includes | |
| ? (arr, value) => arr.includes(value) | |
| : (arr, value) => arr.some(el => el === value) |