Skip to content

Commit 9367e20

Browse files
committed
feat: 발표 자료 링크 추가
1 parent d3c8e91 commit 9367e20

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

apps/pyconkr/src/components/pages/presentation_detail.tsx

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { ErrorBoundary, Suspense } from "@suspensive/react";
44
import { DateTime } from "luxon";
55
import * as React from "react";
66
import { Navigate, useParams } from "react-router-dom";
7+
import * as R from "remeda";
78

89
import PyCon2025Logo from "../../assets/pyconkr2025_logo.png";
910
import { useAppContext } from "../../contexts/app_context";
@@ -147,7 +148,8 @@ export const PresentationDetailPage: React.FC = ErrorBoundary.with(
147148
const descriptionFallback = language === "ko" ? "해당 발표의 설명은 준비 중이에요!" : "Description of the presentation is under preparation!";
148149
const categoriesStr = language === "ko" ? "카테고리" : "Categories";
149150
const speakersStr = language === "ko" ? "발표자" : "Speakers";
150-
// const slideShowStr = language === "ko" ? "발표 슬라이드" : "Presentation Slideshow";
151+
const slideShowStr = language === "ko" ? "발표 슬라이드" : "Presentation Slideshow";
152+
const slideShowLinkStr = language === "ko" ? "링크" : "Link";
151153

152154
const datetimeLabel = language === "ko" ? "발표 시각" : "Presentation Time";
153155
const datetimeSeparator = language === "ko" ? " ~ " : " - ";
@@ -232,17 +234,14 @@ export const PresentationDetailPage: React.FC = ErrorBoundary.with(
232234
</TableCell>
233235
</TableRow>
234236
) : null}
237+
{R.isString(presentation.public_slideshow_file) ? (
238+
<TableRow>
239+
<TableCell children={<Typography variant="subtitle1" fontWeight="bold" children={slideShowStr} />} />
240+
<TableCell children={<Common.Components.LinkHandler href={presentation.public_slideshow_file} children={slideShowLinkStr} />} />
241+
</TableRow>
242+
) : null}
235243
</TableBody>
236244
</Table>
237-
{/* {presentation.slideshow_url && (
238-
<>
239-
<Typography variant="subtitle1" fontWeight="bold" sx={{ width: "100%", p: 2, a: { color: "blue" } }}>
240-
{slideShowStr} :&nbsp;
241-
<Common.Components.LinkHandler href={presentation.slideshow_url} children={presentation.slideshow_url} />
242-
</Typography>
243-
<Divider flexItem />
244-
</>
245-
)} */}
246245
{presentation.image && (
247246
<StyledPresentationImage
248247
alt="Presentation Image"

packages/common/src/schemas/backendAPI.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ namespace BackendAPISchemas {
8181
summary: string | null;
8282
description: string;
8383
slideshow_url: string | null;
84+
public_slideshow_file: string | null;
8485
image: string | null;
8586
categories: {
8687
id: string;

0 commit comments

Comments
 (0)