Skip to content

Commit

Permalink
Merge pull request #291 from ssu-student-union/fix/#289_markdown_apply
Browse files Browse the repository at this point in the history
Fix/#289 markdown apply
  • Loading branch information
jongse7 authored Oct 27, 2024
2 parents 0e1bd47 + e290266 commit 853d82e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
Binary file modified .yarn/install-state.gz
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Viewer } from '@toast-ui/react-editor';

interface AuditDetailContentProps {
content: string;
images?: string[];
Expand All @@ -6,7 +8,7 @@ interface AuditDetailContentProps {
export function AuditDetailContentSection({ content, images = [] }: AuditDetailContentProps) {
return (
<div className="pt-[32px]">
<div className="font-sm text-[#484848]">{content}</div>
<Viewer initialValue={content} />
<div className="h-[32px]" />
{images?.map((image, index) => (
<div key={image + index}>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Viewer } from '@toast-ui/react-editor';

interface NoticeDetailContentProps {
content: string;
images?: string[];
Expand All @@ -6,7 +8,7 @@ interface NoticeDetailContentProps {
export function NoticeDetailContentSection({ content, images = [] }: NoticeDetailContentProps) {
return (
<div className="pt-[32px]">
<div className="font-sm text-[#484848]">{content}</div>
<Viewer initialValue={content} />
<div className="h-[32px]" />
{images?.map((image, index) => (
<div key={image + index}>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Viewer } from '@toast-ui/react-editor';

interface PartnershipDetailContentProps {
content: string;
images?: string[];
Expand All @@ -6,7 +8,7 @@ interface PartnershipDetailContentProps {
export function PartnershipDetailContentSection({ content, images = [] }: PartnershipDetailContentProps) {
return (
<div className="pt-[32px]">
<div className="font-sm text-[#484848]">{content}</div>
<Viewer initialValue={content} />
<div className="h-[32px]" />
{images?.map((image, index) => (
<div key={index}>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export function MainRouter() {
<Route path="/audit/:id" element={<AuditDetailPage />} />
<Route path="/audit/edit" element={<AuditEditPage />} />
<Route path="/audit/:id/patch" element={<AuditPatchPage />} />
{/*자료집 임시 제거*/}
{/*자료집 임시 제거-*/}
{/* <Route path="/data" element={<Data />} />
<Route path="/data/edit" element={<Data />} /> */}
{/*개인정보이용약관*/}
Expand Down

0 comments on commit 853d82e

Please sign in to comment.