fix admin voting
deskripsi: - fix tampilan html di detail
This commit is contained in:
@@ -9,7 +9,7 @@ import { Box, Group, Stack, Text, Title } from "@mantine/core";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { useState } from "react";
|
||||
import { MODEL_EVENT } from "../_lib/interface";
|
||||
import { Comp_DangerouslySetInnerHTML } from "@/app_modules/_global/component/new/comp_set_inner_html";
|
||||
import { Comp_SetInnerHTML } from "@/app_modules/_global/component/new/comp_set_inner_html";
|
||||
|
||||
export default function ComponentEvent_BoxListStatus({
|
||||
data,
|
||||
@@ -49,7 +49,7 @@ export default function ComponentEvent_BoxListStatus({
|
||||
</Text>
|
||||
</Group>
|
||||
<Text fz={"sm"} lineClamp={2}>
|
||||
<Comp_DangerouslySetInnerHTML
|
||||
<Comp_SetInnerHTML
|
||||
props={data.deskripsi}
|
||||
style={{ height: 50 }}
|
||||
/>
|
||||
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
import { Box, Group, Stack, Text, Title } from "@mantine/core";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { useState } from "react";
|
||||
import { Comp_DangerouslySetInnerHTML } from "@/app_modules/_global/component/new/comp_set_inner_html";
|
||||
import { Comp_SetInnerHTML } from "@/app_modules/_global/component/new/comp_set_inner_html";
|
||||
|
||||
export function ComponentEvent_CardBeranda({ data }: { data: any }) {
|
||||
const router = useRouter();
|
||||
@@ -41,7 +41,7 @@ export function ComponentEvent_CardBeranda({ data }: { data: any }) {
|
||||
</Group>
|
||||
|
||||
<Text c={MainColor.white} fz={"sm"} lineClamp={4}>
|
||||
<Comp_DangerouslySetInnerHTML
|
||||
<Comp_SetInnerHTML
|
||||
props={data.deskripsi}
|
||||
style={{ height: 50 }}
|
||||
/>
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
import { useRouter } from "next/navigation";
|
||||
import { useState } from "react";
|
||||
import { MODEL_EVENT } from "../../_lib/interface";
|
||||
import { Comp_DangerouslySetInnerHTML } from "@/app_modules/_global/component/new/comp_set_inner_html";
|
||||
import { Comp_SetInnerHTML } from "@/app_modules/_global/component/new/comp_set_inner_html";
|
||||
|
||||
export function ComponentEvent_CardRiwayat({ data }: { data: MODEL_EVENT }) {
|
||||
const router = useRouter();
|
||||
@@ -44,7 +44,7 @@ export function ComponentEvent_CardRiwayat({ data }: { data: MODEL_EVENT }) {
|
||||
</Group>
|
||||
|
||||
<Text fz={"sm"} lineClamp={4}>
|
||||
<Comp_DangerouslySetInnerHTML
|
||||
<Comp_SetInnerHTML
|
||||
props={data.deskripsi}
|
||||
style={{ height: 50 }}
|
||||
/>
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
ComponentGlobal_BoxInformation,
|
||||
ComponentGlobal_CardStyles,
|
||||
} from "@/app_modules/_global/component";
|
||||
import { Comp_DangerouslySetInnerHTML } from "@/app_modules/_global/component/new/comp_set_inner_html";
|
||||
import { Comp_SetInnerHTML } from "@/app_modules/_global/component/new/comp_set_inner_html";
|
||||
import { Component_V3_GridDetailData } from "@/app_modules/_global/component/new/comp_V3_grid_detail_data";
|
||||
import { Component_V3_MomentDateAndTime } from "@/app_modules/_global/component/new/comp_V3_moment_date_and_time";
|
||||
import { SimpleGrid, Stack, Title } from "@mantine/core";
|
||||
@@ -41,7 +41,7 @@ export default function ComponentEvent_DetailData({
|
||||
},
|
||||
{
|
||||
title: "Deskripsi",
|
||||
value: <Comp_DangerouslySetInnerHTML props={data?.deskripsi ?? ""} />,
|
||||
value: <Comp_SetInnerHTML props={data?.deskripsi ?? ""} />,
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
ComponentGlobal_AvatarAndUsername,
|
||||
ComponentGlobal_CardStyles,
|
||||
} from "@/app_modules/_global/component";
|
||||
import { Comp_DangerouslySetInnerHTML } from "@/app_modules/_global/component/new/comp_set_inner_html";
|
||||
import { Comp_SetInnerHTML } from "@/app_modules/_global/component/new/comp_set_inner_html";
|
||||
import { Component_V3_GridDetailData } from "@/app_modules/_global/component/new/comp_V3_grid_detail_data";
|
||||
import { Component_V3_MomentDateAndTime } from "@/app_modules/_global/component/new/comp_V3_moment_date_and_time";
|
||||
import { clientLogger } from "@/util/clientLogger";
|
||||
@@ -61,7 +61,7 @@ export default function ComponentEvent_DetailMainData() {
|
||||
},
|
||||
{
|
||||
title: "Deskripsi",
|
||||
value: <Comp_DangerouslySetInnerHTML props={data?.deskripsi ?? ""} />,
|
||||
value: <Comp_SetInnerHTML props={data?.deskripsi ?? ""} />,
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user