This file contains hidden or 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 from 'react' | |
| const AlertModal = ({ closeModal, title, message }) => { | |
| return ( | |
| <div className="modal-content"> | |
| <div className="modal-header"> | |
| <h5 | |
| className="modal-title" | |
| >{title}</h5> | |
| <button type="button" className="close" aria-label="Close" onClick={closeModal}> |
This file contains hidden or 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 ActionTypes from '../constants/ActionTypes' | |
| const initialState = { | |
| modalType: null, | |
| modalProps: { | |
| open: false | |
| } | |
| } | |
| export default (state = initialState, action) => { |
This file contains hidden or 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 ActionTypes from '../constants/ActionTypes' | |
| export const showModal = ({ modalProps, modalType }) => dispatch => { | |
| dispatch({ | |
| type: ActionTypes.SHOW_MODAL, | |
| modalProps, | |
| modalType | |
| }) | |
| } |
This file contains hidden or 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 from 'react'; | |
| import ReactDOM from 'react-dom'; | |
| import { Provider } from 'react-redux' | |
| import store from './store'; | |
| import './index.css'; | |
| import App from './App'; | |
| import registerServiceWorker from './registerServiceWorker'; | |
| ReactDOM.render( |
This file contains hidden or 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 { createStore, applyMiddleware } from 'redux'; | |
| import thunk from 'redux-thunk'; | |
| import rootReducer from './reducers'; | |
| /** | |
| * @param {object} initialState | |
| * @returns {func} createStore | |
| */ | |
| export default function configureStore(initialState) { | |
| return createStore( |
This file contains hidden or 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 autoprefixer = require('autoprefixer'); | |
| const webpack = require('webpack'); | |
| const path = require('path'); | |
| const precss = require('precss'); | |
| const TransferWebpackPlugin = require('transfer-webpack-plugin'); | |
| const ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
| module.exports = { | |
| devtool: 'eval', |
This file contains hidden or 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
| entry: [ | |
| 'webpack/hot/only-dev-server', | |
| 'tether', | |
| 'font-awesome/scss/font-awesome.scss', | |
| './client/app.jsx' | |
| ] |
This file contains hidden or 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
| // font-awesome | |
| { | |
| test: /font-awesome\.config\.js/, | |
| use: [ | |
| { loader: 'style-loader' }, | |
| { loader: 'font-awesome-loader' } | |
| ] | |
| }, |
This file contains hidden or 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
| // Bootstrap 4 | |
| { | |
| test: /bootstrap\/dist\/js\/umd\//, use: 'imports-loader?jQuery=jquery' | |
| } |
This file contains hidden or 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
| { | |
| test: /\.css$/, use: ['style-loader', 'css-loader', 'postcss-loader'] | |
| }, | |
| { | |
| test: /\.(scss)$/, | |
| use: ExtractTextPlugin.extract({ | |
| fallback: 'style-loader', | |
| use: [ | |
| { | |
| loader: 'css-loader', // translates CSS into CommonJS modules |