fix admin event
deskripsi: - tampilan text dirubah menjadi text editor
This commit is contained in:
@@ -4,7 +4,7 @@ export function Comp_DangerouslySetInnerHTML({
|
||||
props,
|
||||
color,
|
||||
}: {
|
||||
props: string;
|
||||
props: string | undefined;
|
||||
color?: string;
|
||||
}) {
|
||||
return (
|
||||
@@ -15,7 +15,7 @@ export function Comp_DangerouslySetInnerHTML({
|
||||
}}
|
||||
// className="chat-content"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: props,
|
||||
__html: props ?? "",
|
||||
}}
|
||||
/>
|
||||
</>
|
||||
|
||||
@@ -4,6 +4,7 @@ import moment from "moment";
|
||||
import "moment/locale/id";
|
||||
import { Admin_ComponentBoxStyle } from "../../_admin_global/_component/comp_admin_boxstyle";
|
||||
import { Admin_V3_ComponentDetail } from "../../_components_v3/comp_detail_data";
|
||||
import { Comp_DangerouslySetInnerHTML } from "@/app_modules/_global/component/new/comp_set_inner_html";
|
||||
|
||||
function AdminEvent_ComponentDetailData({
|
||||
data,
|
||||
@@ -56,7 +57,7 @@ function AdminEvent_ComponentDetailData({
|
||||
},
|
||||
{
|
||||
label: "Deskripsi",
|
||||
value: data?.deskripsi,
|
||||
value: <Comp_DangerouslySetInnerHTML props={data?.deskripsi} />,
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -1,13 +1,11 @@
|
||||
'use client'
|
||||
import { useAtom } from 'jotai';
|
||||
import React from 'react';
|
||||
import { gs_admin_event_menu_publish } from '../_lib/global_state';
|
||||
import { IconCircleCheck } from '@tabler/icons-react';
|
||||
import { Button, Group, Stack } from '@mantine/core';
|
||||
import { IconCircleCheck } from '@tabler/icons-react';
|
||||
import { useAtom } from 'jotai';
|
||||
import AdminGlobal_ComponentBackButton from '../../_admin_global/back_button';
|
||||
import { AdminEvent_ViewDetailPeserta } from '../_view';
|
||||
import AdminEvent_ComponentDetailPublish from '../_component/comp_detail_publish';
|
||||
import AdminEvent_DetailDataSponsor from '../_component/detail_data_sponsor';
|
||||
import { gs_admin_event_menu_publish } from '../_lib/global_state';
|
||||
import { AdminEvent_ViewDetailPeserta } from '../_view';
|
||||
|
||||
function AdminEvent_DetailPublish() {
|
||||
const [selectPage, setSelectPage] = useAtom(gs_admin_event_menu_publish);
|
||||
|
||||
Reference in New Issue
Block a user