Skip to content

Commit

Permalink
reverted to previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
SoumavaBanerjee committed Jan 9, 2021
1 parent c3f5c97 commit 6da952d
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 66 deletions.
1 change: 1 addition & 0 deletions deleteLater.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ tags.map((tag) => {
let newString = '';
if (tag.includes(',')) includeComma = true;
if (includeComma) {
// eslint-disable-next-line no-unused-vars
if (tag.charAt(0)) newString = tag.slice(1);
}
return tag;
Expand Down
81 changes: 38 additions & 43 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@
"private": true,
"proxy": "http://localhost:5000",
"dependencies": {
"@material-ui/core": "^4.11.2",
"@material-ui/core": "^4.11.1",
"@material-ui/icons": "^4.11.2",
"@material-ui/lab": "^4.0.0-alpha.57",
"@testing-library/jest-dom": "^5.11.8",
"@testing-library/react": "^11.2.3",
"@testing-library/user-event": "^12.6.0",
"axios": "^0.21.1",
"date-fns": "^2.16.1",
"@testing-library/jest-dom": "^5.11.6",
"@testing-library/react": "^11.2.2",
"@testing-library/user-event": "^12.2.2",
"axios": "^0.21.0",
"moment": "^2.29.1",
"react": "^17.0.1",
"react-dom": "^17.0.1",
Expand Down
7 changes: 1 addition & 6 deletions src/components/Posts/Post/Post.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import makeStyles from './styles';

import { Card, CardActions, CardHeader, CardMedia, CardContent, Button } from '@material-ui/core';
import { Card, CardActions, CardMedia, CardContent, Button } from '@material-ui/core';
import Typography from '@material-ui/core/Typography';
import ThumbUpAltIcon from '@material-ui/icons/ThumbUpAlt';
import EditIcon from '@material-ui/icons/Edit';
Expand All @@ -10,13 +10,8 @@ import DeleteIcon from '@material-ui/icons/Delete';
import moment from 'moment';

const Post = ({ post }) => {
// eslint-disable-next-line no-unused-vars
const classes = makeStyles();
console.log(post);
// useEffect(() => {
// parseISO(postDate);
// // eslint-disable-next-line react-hooks/exhaustive-deps
// }, []);

const handleClickEdit = (event) => {
event.preventDefault();
Expand Down
21 changes: 10 additions & 11 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware, compose } from 'redux';
import { composeWithDevTools } from 'redux-devtools-extension';
import thunk from 'redux-thunk';
import reducers from './reducers';
import React from "react";
import ReactDOM from "react-dom";
import { Provider } from "react-redux";
import { createStore, applyMiddleware, compose } from "redux";
import {composeWithDevTools} from "redux-devtools-extension";
import thunk from "redux-thunk";
import reducers from "./reducers";

import App from './App';
import App from "./App";

// Replace with compose in production
const store = createStore(reducers, composeWithDevTools(applyMiddleware(thunk)));
const store = createStore(reducers,composeWithDevTools(applyMiddleware(thunk)));

ReactDOM.render(
<Provider store={store}>
<App />
</Provider>,
document.getElementById('root'),
document.getElementById("root")
);

0 comments on commit 6da952d

Please sign in to comment.