Skip to content

Commit

Permalink
#36 Add location to post card
Browse files Browse the repository at this point in the history
  • Loading branch information
SandraBergstrom committed Jul 3, 2023
1 parent 300d0b4 commit c654ed6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/pages/posts/Post.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ const Post = (props) => {
updated_at,
postPage,
setPosts,
location,
country,
} = props;

const currentUser = useCurrentUser();
Expand Down Expand Up @@ -191,6 +193,10 @@ const Post = (props) => {
)}
{bucketlists_count}
</div>
<hr />
<div className="d-flex align-items-center justify-content-end">
<span>With love from {location} in {country}</span>
</div>
</Card.Body>
</Card>
);
Expand Down

0 comments on commit c654ed6

Please sign in to comment.