Skip to content

Commit 5783873

Browse files
Add menu items
1 parent 09813ba commit 5783873

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

src/deployment/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ export interface DeploymentConfig {
4444

4545
supportLink?: string;
4646
guideLink?: string;
47+
userGuideLink?: string;
48+
accessibilityLink?: string;
4749
termsOfUseLink?: string;
4850
privacyPolicyLink?: string;
4951
translationLink?: string;

src/workbench/HelpMenu.tsx

+22
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,28 @@ const HelpMenu = ({ size, ...props }: HelpMenuProps) => {
8888
<FormattedMessage id="help-support" />
8989
</MenuItem>
9090
)}
91+
{(true || deployment.userGuideLink) && (
92+
<MenuItem
93+
as="a"
94+
href={deployment.userGuideLink}
95+
target="_blank"
96+
rel="noopener"
97+
icon={<RiExternalLinkLine />}
98+
>
99+
<FormattedMessage id="user-guide" />
100+
</MenuItem>
101+
)}
102+
{(true || deployment.accessibilityLink) && (
103+
<MenuItem
104+
as="a"
105+
href={deployment.accessibilityLink}
106+
target="_blank"
107+
rel="noopener"
108+
icon={<RiExternalLinkLine />}
109+
>
110+
<FormattedMessage id="accessibility" />
111+
</MenuItem>
112+
)}
91113
<MenuItem
92114
as="a"
93115
href="https://microbit-micropython.readthedocs.io/en/v2-docs/"

0 commit comments

Comments
 (0)