This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import { Provider } from 'react-redux'; | |
import { BrowserRouter as Router, Match, Miss }from 'react-router'; | |
import AuthenticatedMatch from '../AuthenticatedMatch'; | |
import styles from './App.scss'; | |
import Header from './Header'; | |
import Footer from './Footer'; | |
import configureStore from '../../store/configureStore'; | |
import RoleActions from '../../actions/roles'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import webpack from 'webpack'; | |
import HtmlWebpackPlugin from 'html-webpack-plugin'; | |
import autoprefixer from 'autoprefixer'; | |
import path from 'path'; | |
// all directories that have css that should use cssModules should be listed here | |
const cssModulesPath = [ | |
path.resolve(__dirname, 'src'), | |
path.resolve(__dirname, 'node_modules/react-toolbox'), | |
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const runDynamicFieldProperties = (field, excludeProps = []) => ( | |
Object.keys(field).reduce((acc, curr) => { | |
const currVal = field[curr]; | |
const isFunc = (typeof currVal === 'function'); | |
const isExcluded = excludeProps.some(key => key === curr); | |
const isMatch = isFunc && !isExcluded; | |
return Object.assign({}, acc, { | |
[curr]: isMatch ? | |
currVal({ | |
data: acc, |
NewerOlder