diff --git a/apps/wiki/components/(modal)/Merge/index.tsx b/apps/wiki/components/(modal)/Merge/index.tsx new file mode 100644 index 0000000..08f6ff5 --- /dev/null +++ b/apps/wiki/components/(modal)/Merge/index.tsx @@ -0,0 +1,12 @@ +import ResolverContainer from "@/components/Resolver"; +import * as styles from "../style.css"; + +const Merge = ({ title, contents }: { title: string; contents: string }) => { + return ( +
+ +
+ ); +}; + +export default Merge; diff --git a/apps/wiki/components/Container/index.tsx b/apps/wiki/components/Container/index.tsx index f83f9e2..c8a36d5 100644 --- a/apps/wiki/components/Container/index.tsx +++ b/apps/wiki/components/Container/index.tsx @@ -16,11 +16,11 @@ interface Props extends PropsWithChildren { title: string; docsType: string; lastModifiedAt?: Date; - docsDetail?: boolean; + isDocsDetail?: boolean; id?: number; } -const Container = ({ docsType, title, lastModifiedAt, docsDetail, id, children }: Props) => { +const Container = ({ docsType, title, lastModifiedAt, isDocsDetail, id, children }: Props) => { const { mutate } = useDeleteDocsMutation(); const { formatDate } = useDate(); const { isAdmin, user, isLoggedIn } = useUser(); @@ -59,11 +59,11 @@ const Container = ({ docsType, title, lastModifiedAt, docsDetail, id, children }

부마위키:{title}

- {docsDetail && lastModifiedAt && ( + {isDocsDetail && ( 최근 편집 · {formatDate(lastModifiedAt)} )}
- {docsDetail && ( + {isDocsDetail && (
- ) : ( - (function SelectEnrollAndDocsTypeComponent() { - return ( - <> -
- {getValidYearList().map((year) => ( - setDocs((prev) => ({ ...prev, enroll: year }))} - > -  {year} | - - ))} -
-
- {[ - "ACCIDENT", - "TEACHER", - "MAJOR_TEACHER", - "MENTOR_TEACHER", - "CLUB", - "FREE_CLUB", - "FRAME", - ].map((type) => ( - - ))} -
- - ); - })() - )} - {isFrame ? ( - - ) : ( -