Skip to content
This repository has been archived by the owner on Dec 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #22 from Team-INSERT/feat/conflictResolver
Browse files Browse the repository at this point in the history
feat : conflict resolver
  • Loading branch information
Ubinquitous authored Aug 7, 2024
2 parents 4a0241a + 8e63ba8 commit eddea6c
Show file tree
Hide file tree
Showing 16 changed files with 891 additions and 185 deletions.
12 changes: 12 additions & 0 deletions apps/wiki/components/(modal)/Merge/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import ResolverContainer from "@/components/Resolver";
import * as styles from "../style.css";

const Merge = ({ title, contents }: { title: string; contents: string }) => {
return (
<div className={styles.background}>
<ResolverContainer title={title} contents={contents} />
</div>
);
};

export default Merge;
8 changes: 4 additions & 4 deletions apps/wiki/components/Container/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -59,11 +59,11 @@ const Container = ({ docsType, title, lastModifiedAt, docsDetail, id, children }
<hgroup className={styles.hgroup}>
<div className={styles.titleBox}>
<h1 className={styles.title}>부마위키:{title}</h1>
{docsDetail && lastModifiedAt && (
{isDocsDetail && (
<span className={styles.lastModifiedAt}>최근 편집 · {formatDate(lastModifiedAt)}</span>
)}
</div>
{docsDetail && (
{isDocsDetail && (
<div className={styles.utilityBox}>
<button onClick={handleDocsEditClick} className={styles.editButton}>
문서 편집
Expand Down
Loading

0 comments on commit eddea6c

Please sign in to comment.