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