diff options
Diffstat (limited to 'examples/docs/src/components/RightSidebar/MoreMenu.astro')
-rw-r--r-- | examples/docs/src/components/RightSidebar/MoreMenu.astro | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/examples/docs/src/components/RightSidebar/MoreMenu.astro b/examples/docs/src/components/RightSidebar/MoreMenu.astro index fd1067859..8fcbfa567 100644 --- a/examples/docs/src/components/RightSidebar/MoreMenu.astro +++ b/examples/docs/src/components/RightSidebar/MoreMenu.astro @@ -1,8 +1,13 @@ --- import ThemeToggleButton from './ThemeToggleButton'; import * as CONFIG from '../../config'; -const { editHref } = Astro.props; -const showMoreSection = CONFIG.COMMUNITY_INVITE_URL || editHref; + +type Props = { + editHref: string; +}; + +const { editHref } = Astro.props as Props; +const showMoreSection = CONFIG.COMMUNITY_INVITE_URL; --- {showMoreSection && <h2 class="heading">More</h2>} |