aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/components')
-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