Skip to content

Commit

Permalink
Merge pull request #87 from Team-INSERT/hotfix/docs#6
Browse files Browse the repository at this point in the history
fix(docs): 문서 위험 텍스트 추가
  • Loading branch information
Ubinquitous authored Mar 18, 2024
2 parents b036ad7 + 96a9c1c commit 5bad571
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
6 changes: 6 additions & 0 deletions app/(docs)/docs/[title]/Docs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ const Docs = ({ docs }: { docs: DocsItem }) => {
});
return (
<div className={styles.container}>
<span className={styles.warning}>
문의를 통해 본인 문서의 기재되길 원치않는 특정 내용을 즉시 삭제할 수 있습니다.
<br />
문서 기재로 발생한 이슈에 대해 부마위키 팀은 아무런 책임을 지지 않으며, 수사 기관에 편집
기록과 관련된 데이터를 제공할 수 있습니다.
</span>
{/* eslint-disable-next-line react/no-danger */}
<div className={styles.body} dangerouslySetInnerHTML={sanitizeData()} />
<div className={styles.contributorsBox}>
Expand Down
5 changes: 5 additions & 0 deletions app/(docs)/docs/[title]/style.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,8 @@ export const contributor = style({
textDecoration: "underline",
},
});

export const warning = style({
color: theme.red,
...font.H6,
});
5 changes: 5 additions & 0 deletions components/Container/style.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,8 @@ export const main = style({
height: "fit-content",
...flex.COLUMN_FLEX,
});

export const warning = style({
color: theme.red,
...font.H6,
});
2 changes: 1 addition & 1 deletion components/Editor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ const Editor = ({ contents = "", title = "", docsType = "", mode }: EditorPropsT
onKeyDown={(e) => setCursorPosition((e.target as HTMLTextAreaElement).selectionStart)}
onChange={handleDocsContentsChange}
value={docs.contents.replaceAll("<br>", "\n")}
placeholder="문서 내용을 입력해주세요. 사진 또는 동영상을 넣으려면 파일을 드래그&드롭하세요..."
placeholder="문서 내용을 입력해주세요. 사진 또는 동영상을 넣으려면 파일을 드래그&드롭하세요."
className={styles.textarea[String(isExampleOpen)]}
/>
</div>
Expand Down

0 comments on commit 5bad571

Please sign in to comment.