From 367c448ec08a290e12c49d3b808f2a1221da4311 Mon Sep 17 00:00:00 2001 From: Weilue Luo Date: Fri, 9 Aug 2024 01:00:29 +0100 Subject: [PATCH] add send comment cd --- scripts/deploy/V3_NEXT_TAG.txt | 2 +- src/app/[locale]/blog/[filename]/comments.tsx | 95 +++++++++++++------ 2 files changed, 68 insertions(+), 29 deletions(-) diff --git a/scripts/deploy/V3_NEXT_TAG.txt b/scripts/deploy/V3_NEXT_TAG.txt index cd5b025..49541f7 100644 --- a/scripts/deploy/V3_NEXT_TAG.txt +++ b/scripts/deploy/V3_NEXT_TAG.txt @@ -1 +1 @@ -92 +94 diff --git a/src/app/[locale]/blog/[filename]/comments.tsx b/src/app/[locale]/blog/[filename]/comments.tsx index d106a3b..a094161 100644 --- a/src/app/[locale]/blog/[filename]/comments.tsx +++ b/src/app/[locale]/blog/[filename]/comments.tsx @@ -1,9 +1,10 @@ "use client"; import IconedText from "@/components/ui/icon-text"; +import Loading from "@/components/ui/loading/spinner"; import Separator from "@/components/ui/separator"; import { useComments } from "@/shared/dynamo"; import { BaseCompProps } from "@/shared/types/comp"; -import { useEffect, useRef } from "react"; +import { useEffect, useRef, useState } from "react"; import { AiFillClockCircle } from "react-icons/ai"; import { FiSend } from "react-icons/fi"; import ReactMarkdown from "react-markdown"; @@ -63,36 +64,74 @@ export default function CommentSection({ filename, messages, locale }: CommentSe ))} - -
-