Skip to content

Commit b55fb92

Browse files
committed
add About to help tray
1 parent 74d5743 commit b55fb92

File tree

3 files changed

+36
-1
lines changed

3 files changed

+36
-1
lines changed

src/components/HelpTray.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { IconInfoLine, IconXSolid } from "@instructure/ui-icons";
55
import { Tray } from "@instructure/ui-tray";
66
import { View } from "@instructure/ui-view";
77
import type React from "react";
8+
import HelpTraySectionAbout from "./HelpTraySectionAbout";
89
import HelpTraySectionFeatures from "./HelpTraySectionFeatures";
910
import HelpTraySectionStages from "./HelpTraySectionStages";
1011

@@ -51,6 +52,7 @@ const HelpTray: React.FC<HelpTrayProps> = ({ isTrayOpen, setIsTrayOpen }) => {
5152
<View as="div" padding="small">
5253
{TrayHeader}
5354
<Flex direction="column" gap="small" padding="small">
55+
<HelpTraySectionAbout />
5456
<HelpTraySectionStages />
5557
<HelpTraySectionFeatures />
5658
</Flex>
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import { Flex } from "@instructure/ui-flex";
2+
import { Heading } from "@instructure/ui-heading";
3+
import { Text } from "@instructure/ui-text";
4+
import { ToggleDetails } from "@instructure/ui-toggle-details";
5+
import type { FC } from "react";
6+
7+
const HelpTraySectionAbout: FC = () => {
8+
const toggleHeader = (
9+
<Heading as="h3" level="h4">
10+
About
11+
</Heading>
12+
);
13+
14+
return (
15+
<Flex.Item>
16+
<ToggleDetails fluidWidth size="large" summary={toggleHeader}>
17+
<Text as="p" size="small">
18+
This site lets you indicate your interest in Instructure's upcoming
19+
features. Depending on the feature, development stage, and your role
20+
you may or may not be invited to participate in product testing.
21+
</Text>
22+
<Text as="p" size="small">
23+
Please note that many of these features are in early stages of
24+
development may change substantially before release, or may not be
25+
released at all. More information on product development stages is
26+
provided below.
27+
</Text>
28+
</ToggleDetails>
29+
</Flex.Item>
30+
);
31+
};
32+
33+
export default HelpTraySectionAbout;

src/components/HelpTraySectionStages.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Heading } from "@instructure/ui-heading";
44
import { Link } from "@instructure/ui-link";
55
import { Popover } from "@instructure/ui-popover";
66
import { Text } from "@instructure/ui-text";
7-
import { ToggleDetails, ToggleGroup } from "@instructure/ui-toggle-details";
7+
import { ToggleDetails } from "@instructure/ui-toggle-details";
88
import { View } from "@instructure/ui-view";
99
import type { FC } from "react";
1010
import { useState } from "react";

0 commit comments

Comments
 (0)