diff --git a/src/app/(admin)/admin/components/MdEditor.tsx b/src/app/(admin)/admin/components/MdEditor.tsx index f79ba25c..d7f3fffe 100644 --- a/src/app/(admin)/admin/components/MdEditor.tsx +++ b/src/app/(admin)/admin/components/MdEditor.tsx @@ -28,12 +28,14 @@ import { toast } from "sonner"; export default function Editor({ value, onChange, + label, }: { value: string; onChange: ( value?: string | undefined, event?: ChangeEvent | undefined, ) => void; + label?: string; }) { const insertImageRef = useRef(null); @@ -96,48 +98,47 @@ export default function Editor({ } return ( - <> -
- - - -
- +
+ + + +
); } diff --git a/src/app/(admin)/admin/organisasi/_components/Form.tsx b/src/app/(admin)/admin/organisasi/_components/Form.tsx index 38ad5b86..49901888 100644 --- a/src/app/(admin)/admin/organisasi/_components/Form.tsx +++ b/src/app/(admin)/admin/organisasi/_components/Form.tsx @@ -14,6 +14,7 @@ import { toast } from "sonner"; import SubmitButton from "@/app/_components/global/SubmitButton"; import { useRouter } from "next-nprogress-bar"; import { fileSizeToMb } from "@/utils/atomics"; +import { P } from "@/app/_components/global/Text"; export default function Form({ organisasi, @@ -188,11 +189,15 @@ export default function Form({ placeholder={`Misi organisasi ${organisasi.organisasi}`} value={organisasi.mission!} /> +

+ Struktur Organisasi +

{ setStructure(data!); }} + label="Upload gambar/ketik" /> diff --git a/src/app/(main)/_components/parts/Opinions/index.tsx b/src/app/(main)/_components/parts/Opinions/index.tsx index b78eeab2..354e80b0 100644 --- a/src/app/(main)/_components/parts/Opinions/index.tsx +++ b/src/app/(main)/_components/parts/Opinions/index.tsx @@ -15,8 +15,8 @@ export default function Opinions() {