diff options
author | 安竹洋平 <61961825+yasutakeyohei@users.noreply.github.com> | 2024-05-29 16:15:06 +0900 |
---|---|---|
committer | 安竹洋平 <61961825+yasutakeyohei@users.noreply.github.com> | 2024-05-29 16:15:06 +0900 |
commit | c4163b886c2d001db08d265ac97bfa5d8de01bdb (patch) | |
tree | 923f2cedda06f0c333554b0d7a6547bf2509cb47 | |
parent | 4a1d181e832b328f041bf9d88f9a79aab768ed0a (diff) |
簡易化
-rw-r--r-- | src/components/KaigirokuDougaLink.js | 16 |
1 files 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 = <ExternalLink href={kaigirokuHref}>📄 会議録{mada}</ExternalLink>; - - if (dougaHref) { - return( - <div className={headingStyles.anchorWithStickyNavbar} id={"kaigiroku"}> - {kaigiroku}|<ExternalLink href={dougaHref}>🎞️ 動画(約2年間公開)</ExternalLink> - </div> - ) - } + let kaigiroku = <ExternalLink href={kaigirokuHref}>📄 会議録{mada}</ExternalLink> + return ( - <div className={headingStyles.anchorWithStickyNavbar} id={"kaigiroku"}> - {kaigiroku} + <div className={headingStyles.anchorWithStickyNavbar} id="kaigiroku"> + {kaigiroku} + {dougaHref && <>|<ExternalLink href={dougaHref}>🎞️ 動画(約2年間公開)</ExternalLink></>} </div> ); }
\ No newline at end of file |