generated from CDCgov/template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e5548b3
commit 0a06f27
Showing
5 changed files
with
167 additions
and
74 deletions.
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
Empty file.
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,51 @@ | ||
import React, { useState } from 'react'; | ||
|
||
function LinkAccordion() { | ||
const [isAccordionOpen, setAccordionOpen] = useState(false); | ||
|
||
const toggleAccordion = () => { | ||
setAccordionOpen(!isAccordionOpen); | ||
}; | ||
|
||
const content = () => { | ||
return (<div | ||
className="font-sans-xs content" | ||
id="gov-banner-default-default" | ||
> | ||
<div> | ||
<p>Our tool expects the .zip file format generated from AIMS. For a successful upload, your .zip file:</p> | ||
<ul className="usa-list margin-top-0"> | ||
<li>• <u>must</u> contain: </li> | ||
<ul className="usa-list margin-top-0 margin-bottom-0"> | ||
<li>• one RR (reportability response) .xml file</li> | ||
<li>• one eICR (electronic initial case report) .xml file</li> | ||
</ul> | ||
<li>• can also contain: </li> | ||
<ul className="usa-list margin-top-0"> | ||
<li>• one RR HTML file</li> | ||
<li>• one eICR HTML file</li> | ||
</ul> | ||
</ul> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
return ( | ||
<div> | ||
<button | ||
type="button" | ||
className={`usa-banner__button ${isAccordionOpen ? 'active' : ''} margin-left-0`} | ||
aria-expanded={isAccordionOpen ? 'true' : 'false'} | ||
aria-controls="gov-banner-default-default" | ||
onClick={toggleAccordion} | ||
> | ||
<span className="usa-banner__button-text">What are the .zip file requirements</span> | ||
|
||
</button> | ||
{isAccordionOpen ? content() : null} | ||
</div> | ||
); | ||
} | ||
|
||
export default LinkAccordion; |
Oops, something went wrong.