# Forum Report
## feat - Repot posting - Report komentar ### No issuee
This commit is contained in:
@@ -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>
|
||||
) : (
|
||||
|
||||
@@ -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 (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user