diff --git a/client-solid/src/Components/Buttons/Replies.tsx b/client-solid/src/Components/Buttons/Replies.tsx deleted file mode 100644 index fe702e8..0000000 --- a/client-solid/src/Components/Buttons/Replies.tsx +++ /dev/null @@ -1,22 +0,0 @@ -import { JSXElement } from "solid-js"; - -import { ReplyIcon } from "../../Util/Icons"; -import { Post } from "../../Util/api"; - -export default function ReplyButton({ post }: { post: Post }): JSXElement { - return ( - <> -
- - -

{post.comments}

-
-
- - ); -} diff --git a/client-solid/src/Components/Comment.tsx b/client-solid/src/Components/Comment.tsx index bdc61c4..d986055 100644 --- a/client-solid/src/Components/Comment.tsx +++ b/client-solid/src/Components/Comment.tsx @@ -1,6 +1,7 @@ import { JSXElement } from "solid-js"; import { PublicComment } from "../Util/api"; +import ReplyButton from "./Buttons/Reply"; interface CommentProps { comment: PublicComment; @@ -15,14 +16,18 @@ interface CommentProps { export function Comment({ comment }: CommentProps): JSXElement { return ( <> -
+
-
{comment.content}
+
{comment.content}
+
- -
Replies to parent comment if any
+
+ +
Replies to parent comment if any
+
+
); } diff --git a/client-solid/src/Components/Menu.tsx b/client-solid/src/Components/Menu.tsx index 36e4b67..841de3e 100644 --- a/client-solid/src/Components/Menu.tsx +++ b/client-solid/src/Components/Menu.tsx @@ -23,12 +23,8 @@ export function Menu(): JSXElement { const login_ctx = useContext(LoginContext)!; return ( -