aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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
commitc4163b886c2d001db08d265ac97bfa5d8de01bdb (patch)
tree923f2cedda06f0c333554b0d7a6547bf2509cb47 /src
parent4a1d181e832b328f041bf9d88f9a79aab768ed0a (diff)
簡易化
Diffstat (limited to 'src')
-rw-r--r--src/components/KaigirokuDougaLink.js16
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