aboutsummaryrefslogtreecommitdiff
path: root/examples/docs/src/components/RightSidebar/MoreMenu.astro
diff options
context:
space:
mode:
Diffstat (limited to 'examples/docs/src/components/RightSidebar/MoreMenu.astro')
-rw-r--r--examples/docs/src/components/RightSidebar/MoreMenu.astro10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/docs/src/components/RightSidebar/MoreMenu.astro b/examples/docs/src/components/RightSidebar/MoreMenu.astro
index 4adffaff4..5dbf89678 100644
--- a/examples/docs/src/components/RightSidebar/MoreMenu.astro
+++ b/examples/docs/src/components/RightSidebar/MoreMenu.astro
@@ -1,13 +1,13 @@
---
import ThemeToggleButton from './ThemeToggleButton';
-import * as CONFIG from '../../config';
+import { COMMUNITY_INVITE_URL } from '../../consts';
type Props = {
editHref: string;
};
-const { editHref } = Astro.props as Props;
-const showMoreSection = CONFIG.COMMUNITY_INVITE_URL;
+const { editHref } = Astro.props;
+const showMoreSection = Boolean(COMMUNITY_INVITE_URL);
---
{showMoreSection && <h2 class="heading">More</h2>}
@@ -39,9 +39,9 @@ const showMoreSection = CONFIG.COMMUNITY_INVITE_URL;
)
}
{
- CONFIG.COMMUNITY_INVITE_URL && (
+ COMMUNITY_INVITE_URL && (
<li class={`header-link depth-2`}>
- <a href={CONFIG.COMMUNITY_INVITE_URL} target="_blank">
+ <a href={COMMUNITY_INVITE_URL} target="_blank">
<svg
aria-hidden="true"
focusable="false"