Skip to content

Commit 9b272eb

Browse files
committed
UI Fix
Changes to be committed: modified: aepp/src/components/MessageBoard.js modified: aepp/src/components/SearchResult.js modified: aepp/src/components/SuperchatUsersList.js
1 parent 3179abe commit 9b272eb

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

aepp/src/components/MessageBoard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const ReceivedMsg = ({ message: { amount, category, content, time } }) => {
3333
animate={{ opacity: 1, transition: { duration: 0.2 } }}
3434
>
3535
{amount ? (
36-
<p style={{ fontWeight: "800" }}>{toAe(amount)}AE sent</p>
36+
<p style={{ fontWeight: "800" }}>{toAe(amount)}AE received</p>
3737
) : null}
3838
<p>{content}</p>
3939
<p className={styles.time}>{parseTime(time)}</p>

aepp/src/components/SearchResult.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const SearchResult = ({ query, filteredUser, friendInstance, dispatch }) => {
1616
exit={{ opacity: 0 }}
1717
animate={{ opacity: 1, transition: { duration: 0.2 } }}
1818
>
19-
<h2>Search results</h2>
19+
<h2>{SearchResults.length} Search result{(SearchResults.length > 1) ? 's' : ''}</h2>
2020
{SearchResults.length < 1 && <p>No results found!</p>}
2121
{SearchResults.map((user) => (
2222
<ProfilePanel

aepp/src/components/SuperchatUsersList.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ const SuperchatUsersList = ({
6161
) : (
6262
<div>
6363
<h4>
64-
{users.length} total users, {friends.length} friends,{" "}
65-
{friendRequests.length} friends request
64+
{users.length} user{(users.length > 1) ? 's' : ''}, {friends.length} friend{(friends.length > 1) ? 's' : ''},{" "}
65+
{friendRequests.length} friend request{(friendRequests.length > 1) ? 's' : ''}
6666
</h4>
6767
{filteredUser.map((user) => (
6868
<ProfilePanel

0 commit comments

Comments
 (0)