Notifiaksi Forum

# feat
- Notifikasi user to user
- Realtime user to user
## No issuee
This commit is contained in:
2024-06-20 21:52:14 +08:00
parent edd13ffe0f
commit d904042dfb
32 changed files with 1182 additions and 443 deletions

View File

@@ -114,7 +114,7 @@ function TableStatus({ dataPublish }: { dataPublish: any }) {
Lihat
</Button>
) : (
<Center w={200}>
<Center w={200} >
<Text fw={"bold"} fz={"xs"} fs={"italic"}>
Tidak ada poster
</Text>
@@ -176,7 +176,7 @@ function TableStatus({ dataPublish }: { dataPublish: any }) {
verticalSpacing={"md"}
horizontalSpacing={"md"}
p={"md"}
w={1500}
w={"100%"}
h={"100%"}
striped
highlightOnHover

View File

@@ -249,7 +249,7 @@ function TableStatus({ listReject }: { listReject: any }) {
verticalSpacing={"md"}
horizontalSpacing={"md"}
p={"md"}
w={1500}
w={"100%"}
h={"100%"}
striped
highlightOnHover

View File

@@ -278,7 +278,7 @@ function TableStatus({ listReview }: { listReview: any }) {
verticalSpacing={"md"}
horizontalSpacing={"md"}
p={"md"}
w={1500}
w={"100%"}
h={"100%"}
striped
highlightOnHover
@@ -375,6 +375,7 @@ async function onReject({
if (reject.status === 200) {
const loadData = await adminJob_getListReview({ page: 1 });
onLoadData(loadData);
ComponentGlobal_NotifikasiBerhasil(reject.message);
const dataNotif = {
@@ -393,7 +394,7 @@ async function onReject({
if (notif.status === 201) {
mqtt_client.publish(
"USER",
JSON.stringify({ userId: reject?.data?.authorId, count: 1 })
JSON.stringify({ userId: dataNotif.userId, count: 1 })
);
}
} else {