Skip to content

Commit 90d7002

Browse files
authored
Merge pull request #30 from christian-japan-devs/design
update audio link
2 parents cf3a946 + 8fd9be6 commit 90d7002

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

design/components/card/PostView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ const PostView: NextPage<Props> = ({post,readMore}) => {
4848
</div>
4949
</div>
5050
<span className="text-sm mt-4 text-gray-500 dark:text-gray-400">{getDateFromDateByHour(post.post_meta.created_on,0)}</span>
51-
{post.post_meta.audio_link&&
51+
{post.post_meta.audio_link?
5252
<div className="mt-8 justify-center items-start h-full max-h-full w-full max-w-full border-gray-200 dark:border-gray-700">
5353
<iframe className="w-full h-full" src={post.post_meta.audio_link} title="Vietcatholicjp"></iframe>
54-
</div>
54+
</div>:""
5555
}
5656
<div className="my-2">
5757
{

design/pages/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ const Home: NextPage<Props> = ({}) => {
115115
<Layout meta_data={meta_data} current_page='home'>
116116
<Hero/>
117117
<LetterView post={letter}/>
118-
<MassSchedule schedule={massScheduleHome} gospel_link={massScheduleHome.gospel?.audio_link}/>
118+
<MassSchedule schedule={massScheduleHome} gospel_link={massScheduleHome.audio_link}/>
119119
<Notice announcements={announcements}/>
120120
<PriorityNotice/>
121121
<VideoPostCast videoLinks={videoLinks}/>

design/types/shedule.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export type MassDateSchedule = {
2222
date: string,
2323
title: string,
2424
slug?: string,
25-
gospel?: GospelType
25+
audio_link?: string
2626
time_schedule: MassTimeSchedule[]
2727
}
2828

0 commit comments

Comments
 (0)