Skip to content

Commit ac04c77

Browse files
Requested changes
1 parent 456676f commit ac04c77

File tree

6 files changed

+10
-24
lines changed

6 files changed

+10
-24
lines changed

.vscode/launch.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/user/organization/organization.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ import contactLoading from "../../placeholderLoading/contactLoading/contactLoadi
1313
import cardLoading from "../../placeholderLoading/cardLoading/cardLoading";
1414
import { connect } from "react-redux";
1515
import { getOrgProfile } from "../../actions/orgAction";
16+
import { Link } from "react-router-dom";
17+
import { Button } from "react-bootstrap";
1618

1719
class Organization extends Component {
1820
constructor(props) {

src/user/proposals/ProposalDiscussion/DiscussionContent/DiscussionComments/DiscussionComments.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ class DiscussionComments extends Component {
1616
}
1717

1818
handleComment = (text) => {
19+
const { userId, proposalId, isAuthor, author } = this.props;
20+
1921
const commentData = {
20-
userId: this.props.userId,
21-
proposalId: this.props.proposalId,
22+
userId: userId,
23+
proposalId: proposalId,
2224
comment: this.state.commentContent,
23-
isAuthor: this.props.isAuthor,
24-
author: this.props.author,
25+
isAuthor: isAuthor,
26+
author: author,
2527
};
2628
this.props.commentProposal(commentData);
2729
this.props.handleComment(this.state.commentContent);

src/user/proposals/ProposalEditor/EditorContent/EditorContent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ class EditorContent extends Component {
124124
content: this.state.currentText,
125125
proposalStatus: "DRAFT",
126126
creator: localStorage.getItem("userId"),
127-
description: this.state.proposalDescription,
127+
proposalDescription: this.state.proposalDescription,
128128
};
129129

130130
this.props.createProposal(proposalInfo);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { Component } from "react";
22
import "./OtherIdeas.scss";
33
import { ListGroup, Image } from "react-bootstrap";
44
import userIcon2 from "../../../../../images/userIcon2.jpg";
5-
import socket from "../Utils/socket";
5+
import socket from "../../../../dashboard/utils/socket";
66
import { connect } from "react-redux";
77
import { getUserProposalNotifications } from "../../../../../actions/proposalActions";
88
import { getProposalNotifications } from "../../../../../actions/notificationAction";

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

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)