Gitignore env and Add redux dev tools

This commit is contained in:
“himanshu” 2021-01-20 04:45:52 +05:30
parent a6811aca6b
commit 546af6e46b
2 changed files with 7 additions and 4 deletions

4
.gitignore vendored
View File

@ -19,6 +19,7 @@ frontend/.yarnclean
frontend/npm-debug.log*
frontend/yarn-debug.log*
frontend/yarn-error.log*
frontend/src/constants/env.ts
.idea
@ -26,4 +27,5 @@ frontend/yarn-error.log*
*.tgz
**/build
**/storage
**/locust-scripts/__pycache__/
**/locust-scripts/__pycache__/

View File

@ -1,7 +1,7 @@
import React from "react";
import ReactDOM from "react-dom";
import { Provider } from "react-redux";
import { createStore, applyMiddleware } from "redux";
import { createStore, applyMiddleware, compose } from "redux";
import { ThemeSwitcherProvider } from "react-css-theme-switcher";
import thunk from "redux-thunk";
// import { NavLink, BrowserRouter as Router, Route, Switch } from 'react-router-dom';
@ -10,8 +10,9 @@ import AppWrapper from "./components/AppWrapper";
import "./assets/index.css";
import { reducers } from "./reducers";
// import Signup from './components/Signup';
const store = createStore(reducers, applyMiddleware(thunk));
// @ts-ignore
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
const store = createStore(reducers, composeEnhancers(applyMiddleware(thunk)));
const themes = {
dark: `${process.env.PUBLIC_URL}/dark-theme.css`,