Skip to content

Commit 7467b41

Browse files
fixing dev branch issues (#525)
1 parent b9c51d8 commit 7467b41

File tree

5 files changed

+106
-6
lines changed

5 files changed

+106
-6
lines changed

package-lock.json

Lines changed: 103 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"react-toastify": "^6.0.5",
3737
"redux": "^4.0.5",
3838
"redux-thunk": "^2.3.0",
39+
"showdown": "^1.9.1",
3940
"socket.io-client": "^2.3.0"
4041
},
4142
"proxy": "http://localhost:5000",

src/user/dashboard/news-feed/popups/AddPostModal.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,9 @@ import { connect } from "react-redux";
55
import { createPost } from "../../../../actions/dashboardAction";
66
import { Editor } from "@tinymce/tinymce-react";
77
import showdown from "showdown";
8-
import { CREATE_PROPOSAL } from "../../../../actions/types";
98

109
const AddPostModal = (props) => {
1110
const [content, setContent] = useState("");
12-
const [editorText, setText] = useState("");
13-
14-
const onChange = (event) => {
15-
setContent(event.target.value);
16-
};
1711

1812
let converter = new showdown.Converter();
1913

src/user/proposals/UserProposalDashboard/DashboardRightPanel/Comments/Comments.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ class Comments extends Component {
9191
{notifications.map((notification, index) => {
9292
return (
9393
<ListGroup.Item
94+
key={index}
9495
style={
9596
notification.newNotification
9697
? { backgroundColor: "#E8F1FD" }

src/user/proposals/UserProposalDashboard/DashboardRightPanel/DashboardRightPanel.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React, { Component } from "react";
22
import "./DashboardRightPanel.scss";
33
import Notifications from "./Notifications/Notifications";
4+
import Comments from "./Comments/Comments";
45

56
class DashboardRightPanel extends Component {
67
constructor(props) {

0 commit comments

Comments
 (0)