This is an implementation for issue #324 - Display the review state to users.
New Features
Display the review state to users
- Moderator View
- Non-Moderator View
- Moderator View
How did you implement it?
There were two modes that the status had to be displayed: one for the moderator, another for the common user.
There were already existing codes from Moderation Control, I just had to re-use them and add the Unreviewed (Not Reviewed) status.
src/components/Story/StoryFull.js
- Added the Not Reviewed status
- Removed the status inside the Moderation Control block and put it inside its own div
- Added the Not Reviewed status
src/components/Story/StoryFull.less
- Added the CSS style for StoryFull__info and made the background
@green
- Reduced the bottom margin to
15px
for the moderation control to save space
- Added the CSS style for StoryFull__info and made the background
Posted on Utopian.io - Rewarding Open Source Contributors