diff --git a/app/blog/[slug]/page.js b/app/blog/[slug]/page.js index 8aafcb4..239ff2a 100644 --- a/app/blog/[slug]/page.js +++ b/app/blog/[slug]/page.js @@ -10,6 +10,7 @@ function Blog({ params: { slug } }) { ) diff --git a/app/component/AnimationTextHead.js b/app/component/AnimationTextHead.js new file mode 100644 index 0000000..eb1de5f --- /dev/null +++ b/app/component/AnimationTextHead.js @@ -0,0 +1,16 @@ +function AnimationTextHead({ name, text, children }) { + return ( +
+
+

{text}

+
+
+ {children} +
+
+ ) +} + +export default AnimationTextHead \ No newline at end of file diff --git a/components/doctor/detailDoctor/cards/comments/commentUser/Field.js b/app/component/comment/Field.js similarity index 97% rename from components/doctor/detailDoctor/cards/comments/commentUser/Field.js rename to app/component/comment/Field.js index e883cf4..167e71a 100644 --- a/components/doctor/detailDoctor/cards/comments/commentUser/Field.js +++ b/app/component/comment/Field.js @@ -25,4 +25,4 @@ function Field({ title, type, multiline, isPlaceHolder }) { ) } -export default Field \ No newline at end of file +export default Field; \ No newline at end of file diff --git a/components/doctor/detailDoctor/cards/comments/commentUser/ItemUser.js b/app/component/comment/ItemUser.js similarity index 95% rename from components/doctor/detailDoctor/cards/comments/commentUser/ItemUser.js rename to app/component/comment/ItemUser.js index 825eed1..02574b3 100644 --- a/components/doctor/detailDoctor/cards/comments/commentUser/ItemUser.js +++ b/app/component/comment/ItemUser.js @@ -1,11 +1,13 @@ -import Image from "next/image" -import { Button, Skeleton } from "@mui/material" -import LikeComment from "@/components/icons/LikeComment" -import BoldLikeComment from "@/components/icons/BoldLikeComment" -import BoldDisLikeComment from "@/components/icons/BoldDisLikeComment" -import DisLikeComment from "@/components/icons/DisLikeComment" -import ArrowUpComment from "@/components/icons/ArrowUpComment" -import Field from "./Field" +import Image from "next/image"; +import { Button, Skeleton } from "@mui/material"; +import Field from "./Field"; + +// Icons +import BoldDisLikeComment from "@/components/icons/BoldDisLikeComment"; +import BoldLikeComment from "@/components/icons/BoldLikeComment"; +import DisLikeComment from "@/components/icons/DisLikeComment"; +import ArrowUpComment from "@/components/icons/ArrowUpComment"; +import LikeComment from "@/components/icons/LikeComment"; function ItemUser({ update, setUpdate, list, setList, data, loading }) { diff --git a/components/doctor/detailDoctor/cards/comments/commentUser/index.js b/app/component/comment/index.js similarity index 75% rename from components/doctor/detailDoctor/cards/comments/commentUser/index.js rename to app/component/comment/index.js index 7c835a4..e39e956 100644 --- a/components/doctor/detailDoctor/cards/comments/commentUser/index.js +++ b/app/component/comment/index.js @@ -2,14 +2,14 @@ import { useState } from 'react'; import ItemUser from './ItemUser' -function CommentUser({ doctor }) { +function Comment({ data }) { - const [list, setList] = useState(doctor.comments); + const [list, setList] = useState(data.comments); const [update, setUpdate] = useState(false); return (