generated from CDCgov/template
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support section with contact and faq pages #5649
Closed
Closed
Changes from 1 commit
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
33eaf5c
catch up with master
drew-usds cc446fa
add new /support dir, add contact and faq pages, add routes, add nav …
drew-usds 47f9b4a
update markup and content for /support
drew-usds b56f9fc
adjust divs and sections to match other pages ... we have a markup pr…
drew-usds a3a0902
fix typo in reportstream
drew-usds 2a23e00
edit faq content
drew-usds 4c44da1
run linter
drew-usds 35c740f
content tweaks, re-run linter
drew-usds b7f85d4
merge master, fix conflicts
drew-usds 4b81c36
refactor /support to work with markdown updates
drew-usds File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Contact us | ||
|
||
Foo baz bar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Frequently asked questions | ||
|
||
yo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import React from "react"; | ||
|
||
import { MarkdownDirectory } from "../../components/Markdown/MarkdownDirectory"; | ||
import StaticPageFromDirectories from "../../components/Markdown/StaticPageFromDirectories"; | ||
import faq from "../../content/support/faq.md"; | ||
import contact from "../../content/support/contact.md"; | ||
import DropdownNav from "../../components/header/DropdownNav"; | ||
|
||
/* This controls the content for Support | ||
* | ||
* visit: https://reportstream.cdc.gov/admin/guides/create-markdown-pages | ||
* for mor info on how to edit this directory */ | ||
export const SUPPORT: MarkdownDirectory[] = [ | ||
new MarkdownDirectory("Frequently asked questions", "faq", [faq]), | ||
new MarkdownDirectory("Contact", "contact", [contact]), | ||
]; | ||
|
||
/* This generates the navigation item for Built For You | ||
* Import and use this in ReportStreamHeader */ | ||
export const SupportDropdown = () => { | ||
return ( | ||
<DropdownNav label="Support" root="/support" directories={SUPPORT} /> | ||
); | ||
}; | ||
|
||
/* Creates the page and side-nav from your directory array */ | ||
const SupportIndex = () => <StaticPageFromDirectories directories={SUPPORT} />; | ||
export default SupportIndex; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we're not shipping with content, let's add this dynamically with
CheckFeatureFlag("support")
like we do down on line 42 with Built For You