Skip to content

Commit

Permalink
Using the Username compoenen
Browse files Browse the repository at this point in the history
  • Loading branch information
rrmdp committed Mar 16, 2022
1 parent 834f982 commit 57486eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/Comment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ import * as React from "react";
import { Text, Heading, HStack, Stack } from "@chakra-ui/react";
import TimeAgo from "react-timeago";
import Avatar from "@davatar/react";
import Username from "./Username";
import {Comment} from "../hooks/useDBForumContract";


interface CommentProps {
comment: Comment;
}
Expand All @@ -14,7 +16,7 @@ const Comment: React.FunctionComponent<CommentProps> = ({ comment }) => {

<Stack spacing={1} flex={1} bg="whiteAlpha.100" rounded="2xl" p={3}>
<Heading color="whiteAlpha.900" fontSize="lg">
{comment.creator_address}
<Username address={comment.creator_address} />
</Heading>
<Text color="whiteAlpha.800" fontSize="lg">
{comment.message}
Expand Down

0 comments on commit 57486eb

Please sign in to comment.