Skip to content

Commit

Permalink
Merge pull request #501 from SCCapstone/CombineCreateAndEditPostUi
Browse files Browse the repository at this point in the history
CombineCreateAndEditPostUi
  • Loading branch information
jbytes1027 authored Apr 11, 2024
2 parents d7b1d2c + 13ef641 commit 1272434
Show file tree
Hide file tree
Showing 5 changed files with 495 additions and 795 deletions.
346 changes: 0 additions & 346 deletions FU.SPA/src/components/Edit.jsx

This file was deleted.

4 changes: 3 additions & 1 deletion FU.SPA/src/components/PostCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ const PostCard = ({ post, showActions, onTagClick, showJoinedStatus }) => {
}

const stringToColor = (string) => {
if (!string) return null;

let hash = 0;
let i;
for (i = 0; i < string.length; i += 1) {
Expand Down Expand Up @@ -111,7 +113,7 @@ const PostCard = ({ post, showActions, onTagClick, showJoinedStatus }) => {
bgcolor: stringToColor(user?.username),
}}
/>
<Typography variant="subtitle2">{`by ${user.username}`}</Typography>
<Typography variant="subtitle2">{`by ${user?.username}`}</Typography>
</div>
{renderJoinedStatus()}
</div>
Expand Down
Loading

0 comments on commit 1272434

Please sign in to comment.