From c4163b886c2d001db08d265ac97bfa5d8de01bdb Mon Sep 17 00:00:00 2001 From: 安竹洋平 <61961825+yasutakeyohei@users.noreply.github.com> Date: Wed, 29 May 2024 16:15:06 +0900 Subject: 簡易化 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/KaigirokuDougaLink.js | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/src/components/KaigirokuDougaLink.js b/src/components/KaigirokuDougaLink.js index 6188969a..3d07b778 100644 --- a/src/components/KaigirokuDougaLink.js +++ b/src/components/KaigirokuDougaLink.js @@ -4,18 +4,12 @@ import headingStyles from '@docusaurus/theme-classic/lib/theme/Heading/styles.mo export default function KaigirokuDougaLink({kaigirokuHref, dougaHref}) { let mada = kaigirokuHref ? "" : "(まだ公開されていません)"; - let kaigiroku = 📄 会議録{mada}; - - if (dougaHref) { - return( -
- {kaigiroku}|🎞️ 動画(約2年間公開) -
- ) - } + let kaigiroku = 📄 会議録{mada} + return ( -
- {kaigiroku} +
+ {kaigiroku} + {dougaHref && <>|🎞️ 動画(約2年間公開)}
); } \ No newline at end of file -- cgit v1.2.3-54-g00ecf