From 1fcba1d35b6d48284805d53a9b3246b6db2da02a Mon Sep 17 00:00:00 2001 From: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com> Date: Mon, 23 May 2022 18:58:52 -0300 Subject: [PATCH 1/6] Add `CommunityMenu` component and change `MoreMenu` to `ContributeMenu` --- src/components/PageContent/PageContent.astro | 6 ++- .../RightSidebar/CommunityMenu.astro | 54 +++++++++++++++++++ .../{MoreMenu.astro => ContributeMenu.astro} | 24 +-------- .../RightSidebar/RightSidebar.astro | 6 ++- src/i18n/en/ui.ts | 7 ++- 5 files changed, 69 insertions(+), 28 deletions(-) create mode 100644 src/components/RightSidebar/CommunityMenu.astro rename src/components/RightSidebar/{MoreMenu.astro => ContributeMenu.astro} (82%) diff --git a/src/components/PageContent/PageContent.astro b/src/components/PageContent/PageContent.astro index e414ce4bc458b..2191dd1447662 100644 --- a/src/components/PageContent/PageContent.astro +++ b/src/components/PageContent/PageContent.astro @@ -1,5 +1,6 @@ --- -import MoreMenu from '../RightSidebar/MoreMenu.astro'; +import ContributeMenu from '../RightSidebar/ContributeMenu.astro'; +import CommunityMenu from "../RightSidebar/CommunityMenu.astro"; import ArticleNavigationButton from './ArticleNavigationButton.astro'; import TableOfContents from '../RightSidebar/TableOfContents.tsx'; import { getNav, useTranslations } from "../../i18n/util"; @@ -28,7 +29,8 @@ const t = useTranslations(Astro); headers={headers} labels={{ onThisPage: t('rightSidebar.onThisPage'), overview: t('rightSidebar.overview') }} /> - + + )} diff --git a/src/components/RightSidebar/CommunityMenu.astro b/src/components/RightSidebar/CommunityMenu.astro new file mode 100644 index 0000000000000..c40326b85940a --- /dev/null +++ b/src/components/RightSidebar/CommunityMenu.astro @@ -0,0 +1,54 @@ +--- +import UIString from '../UIString.astro'; +--- + +

+ diff --git a/src/components/RightSidebar/MoreMenu.astro b/src/components/RightSidebar/ContributeMenu.astro similarity index 82% rename from src/components/RightSidebar/MoreMenu.astro rename to src/components/RightSidebar/ContributeMenu.astro index 5ae7beb381550..861fa38ddfd4e 100644 --- a/src/components/RightSidebar/MoreMenu.astro +++ b/src/components/RightSidebar/ContributeMenu.astro @@ -4,7 +4,7 @@ import UIString from '../UIString.astro'; const { editHref } = Astro.props; --- -

+