{"size": 1441, "ext": "js", "max_stars_repo_path": "client/src/index.js", "max_stars_repo_name": "tuanlh/crowdfunding-dapp", "max_stars_repo_stars_event_min_datetime": "2020-03-16T15:09:04.000Z", "max_stars_repo_stars_event_max_datetime": "2021-12-15T03:43:09.000Z", "max_issues_repo_path": "client/src/index.js", "max_issues_repo_name": "tuanlh/crowdfunding-dapp", "max_issues_repo_issues_event_min_datetime": "2021-09-02T05:04:02.000Z", "max_issues_repo_issues_event_max_datetime": "2021-09-02T05:04:02.000Z", "max_forks_repo_path": "client/src/index.js", "max_forks_repo_name": "tuanlh/crowdfunding-dapp", "max_forks_repo_forks_event_min_datetime": "2021-12-07T05:29:10.000Z", "max_forks_repo_forks_event_max_datetime": "2021-12-10T00:49:03.000Z"}
{"max_stars_count": 2, "max_issues_count": 1, "max_forks_count": 2, "avg_line_length": 27.7115384615, "max_line_length": 78, "alphanum_fraction": 0.6842470507}
import React from "react";
import ReactDOM from "react-dom";
import { Provider } from "react-redux";
import { createStore } from "redux";
import { BrowserRouter } from "react-router-dom";
import * as serviceWorker from "./serviceWorker";
import { Header, Footer } from "./components/MainPage";
import CssBaseline from "@material-ui/core/CssBaseline";

import { MuiThemeProvider, createMuiTheme } from "@material-ui/core/styles";

import pink from "@material-ui/core/colors/pink";
import "./css/style.scss";
import rootReducer from "./reducers";
import "./fontawesome";
import ContainerMain from "./ContainerMain";

const store = createStore(
  rootReducer,
  window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()
);

const theme = {
  palette: {
    primary: {
      main: "#3367cc"
    },
    secondary: pink
  }
};

ReactDOM.render(
  <Provider store={store}>
    <MuiThemeProvider theme={createMuiTheme(theme)}>
      <div style={{ display: "flex" }}>
        <BrowserRouter>
          <CssBaseline />
          <Header />
          <ContainerMain />
        </BrowserRouter>
      </div>
      <Footer />
    </MuiThemeProvider>
  </Provider>,
  document.getElementById("root")
);

// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: http://bit.ly/CRA-PWA
serviceWorker.unregister();
