fix text editor voting
deskripsi: - fix on create & edit - fix tampilan html di detail
This commit is contained in:
@@ -70,49 +70,6 @@ export default function Vote_DetailKontribusi() {
|
||||
return (
|
||||
<>
|
||||
<Stack pb={"md"}>
|
||||
{/* <ComponentGlobal_CardStyles marginBottom={"0px"}>
|
||||
<Stack>
|
||||
<ComponentGlobal_AvatarAndUsername
|
||||
profile={data?.Author.Profile as any}
|
||||
/>
|
||||
<Stack spacing={"lg"}>
|
||||
<Center>
|
||||
<Title order={4} align="center">
|
||||
{data?.title}
|
||||
</Title>
|
||||
</Center>
|
||||
<Text>{data?.deskripsi}</Text>
|
||||
|
||||
<Stack spacing={0} pb={"xs"}>
|
||||
<Stack align="center" spacing={"xs"}>
|
||||
<Text fz={10} fw={"bold"}>
|
||||
Batas Voting
|
||||
</Text>
|
||||
<Badge
|
||||
styles={{
|
||||
root: {
|
||||
backgroundColor: AccentColor.blue,
|
||||
border: `1px solid ${AccentColor.skyblue}`,
|
||||
color: "white",
|
||||
width: "80%",
|
||||
},
|
||||
}}
|
||||
>
|
||||
<Text>
|
||||
{data
|
||||
? moment(data.awalVote).format("ll")
|
||||
: "tgl awal voting"}{" "}
|
||||
-{" "}
|
||||
{data
|
||||
? moment(data.akhirVote).format("ll")
|
||||
: "tgl akhir voting"}
|
||||
</Text>
|
||||
</Badge>
|
||||
</Stack>
|
||||
</Stack>
|
||||
</Stack>
|
||||
</Stack>
|
||||
</ComponentGlobal_CardStyles> */}
|
||||
<ComponentVote_DetailDataSetelahPublish
|
||||
data={data as any}
|
||||
authorName={true}
|
||||
|
||||
@@ -42,6 +42,7 @@ import { Voting_ComponentSkeletonDetail } from "../../component/skeleton_view";
|
||||
import { Vote_funCreateHasil } from "../../fun/create/create_hasil";
|
||||
import { MODEL_VOTING } from "../../model/interface";
|
||||
import CustomSkeleton from "@/app_modules/components/CustomSkeleton";
|
||||
import { Comp_DangerouslySetInnerHTML } from "@/app_modules/_global/component/new/comp_set_inner_html";
|
||||
|
||||
export default function Vote_MainDetail({
|
||||
userLoginId,
|
||||
@@ -222,7 +223,7 @@ export default function Vote_MainDetail({
|
||||
{data?.title}
|
||||
</Title>
|
||||
</Center>
|
||||
<Text>{data?.deskripsi}</Text>
|
||||
<Comp_DangerouslySetInnerHTML props={data?.deskripsi} />
|
||||
|
||||
<Stack spacing={0}>
|
||||
<Stack align="center" spacing={"xs"}>
|
||||
|
||||
Reference in New Issue
Block a user