# Forum Report

## feat
- Repot posting
- Report komentar
### No issuee
This commit is contained in:
2024-03-18 14:02:01 +08:00
parent a77d728a5f
commit de0790aade
33 changed files with 605 additions and 49 deletions

View File

@@ -31,6 +31,7 @@ export default function ComponentForum_KomentarAuthorNameOnHeader({
isMoreButton,
setKomentar,
postingId,
userLoginId,
}: {
userId?: string;
komentarId?: string;
@@ -40,7 +41,8 @@ export default function ComponentForum_KomentarAuthorNameOnHeader({
isPembatas?: boolean;
isMoreButton?: boolean;
setKomentar?: any;
postingId?: string
postingId?: string;
userLoginId: string
}) {
const router = useRouter();
@@ -117,6 +119,7 @@ export default function ComponentForum_KomentarAuthorNameOnHeader({
komentarId={komentarId}
setKomentar={setKomentar}
postingId={postingId}
userLoginId={userLoginId}
/>
</Group>
) : (

View File

@@ -37,16 +37,17 @@ export default function ComponentForum_KomentarButtonMore({
komentarId,
setKomentar,
postingId,
userLoginId,
}: {
userId: any;
komentarId: any;
setKomentar?: any;
postingId?: string;
userLoginId: string
}) {
const router = useRouter();
const [opened, { open, close }] = useDisclosure(false);
const [openDel, setOpenDel] = useState(false);
const [userLoginId, setUserLoginId] = useState("");
// loading
const [loadingEdit, setLoadingEdit] = useState(false);
@@ -54,14 +55,7 @@ export default function ComponentForum_KomentarButtonMore({
// if (loadingEdit) return <ComponentGlobal_V2_LoadingPage />;
useShallowEffect(() => {
getUserLoginId();
}, []);
async function getUserLoginId() {
const getUserLoginId = await User_getUserId();
setUserLoginId(getUserLoginId);
}
return (
<>