From a9fab0de34c80dc06e43c7d239a9dbcec712d881 Mon Sep 17 00:00:00 2001 From: Olivier JM Date: Tue, 26 Feb 2019 19:18:05 +0200 Subject: [PATCH] redesigned the feedback page --- imports/ui/components/Dashboard/Feedback.jsx | 48 ++++++++++---------- 1 file changed, 23 insertions(+), 25 deletions(-) diff --git a/imports/ui/components/Dashboard/Feedback.jsx b/imports/ui/components/Dashboard/Feedback.jsx index aa9e1da2..0c9e86d0 100644 --- a/imports/ui/components/Dashboard/Feedback.jsx +++ b/imports/ui/components/Dashboard/Feedback.jsx @@ -54,7 +54,7 @@ export class Feedback extends Component { ); } - renderComments(color) { + renderComments(isDark) { const { feeds } = this.props; if (!feeds || !feeds.length) { return ( @@ -63,28 +63,30 @@ export class Feedback extends Component { } return feeds.map(feed => ( - + {feed.title} + +

+ {feed.feedback} +

+ +
+ {feed.createdBy} + Source +
+ )); } @@ -102,11 +104,7 @@ export class Feedback extends Component {

common.titles.usersfeedback

-
-
- {this.renderComments(state.isDark ? '#F5FAF8' : '#000000')} -
-
+ {this.renderComments(state.isDark)} {this.renderPagination()} )}