Skip to content

Commit

Permalink
UI Fix
Browse files Browse the repository at this point in the history
Changes to be committed:
	modified:   aepp/src/components/MessageBoard.js
	modified:   aepp/src/components/SearchResult.js
	modified:   aepp/src/components/SuperchatUsersList.js
  • Loading branch information
emmanuelJet committed Dec 13, 2020
1 parent 3179abe commit 9b272eb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion aepp/src/components/MessageBoard.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const ReceivedMsg = ({ message: { amount, category, content, time } }) => {
animate={{ opacity: 1, transition: { duration: 0.2 } }}
>
{amount ? (
<p style={{ fontWeight: "800" }}>{toAe(amount)}AE sent</p>
<p style={{ fontWeight: "800" }}>{toAe(amount)}AE received</p>
) : null}
<p>{content}</p>
<p className={styles.time}>{parseTime(time)}</p>
Expand Down
2 changes: 1 addition & 1 deletion aepp/src/components/SearchResult.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const SearchResult = ({ query, filteredUser, friendInstance, dispatch }) => {
exit={{ opacity: 0 }}
animate={{ opacity: 1, transition: { duration: 0.2 } }}
>
<h2>Search results</h2>
<h2>{SearchResults.length} Search result{(SearchResults.length > 1) ? 's' : ''}</h2>
{SearchResults.length < 1 && <p>No results found!</p>}
{SearchResults.map((user) => (
<ProfilePanel
Expand Down
4 changes: 2 additions & 2 deletions aepp/src/components/SuperchatUsersList.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ const SuperchatUsersList = ({
) : (
<div>
<h4>
{users.length} total users, {friends.length} friends,{" "}
{friendRequests.length} friends request
{users.length} user{(users.length > 1) ? 's' : ''}, {friends.length} friend{(friends.length > 1) ? 's' : ''},{" "}
{friendRequests.length} friend request{(friendRequests.length > 1) ? 's' : ''}
</h4>
{filteredUser.map((user) => (
<ProfilePanel
Expand Down

0 comments on commit 9b272eb

Please sign in to comment.