Skip to content

Commit

Permalink
Merge pull request #162 from TRI-AMDD/TRI-37217-faq-add-text-to-the-a…
Browse files Browse the repository at this point in the history
…nswer-to-question-can-i-download-all-the-oxidation

changes for TRI-37217
  • Loading branch information
danny-martinez-1 authored Oct 14, 2024
2 parents 5bcc677 + f07dd89 commit e91290a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 26 deletions.
26 changes: 0 additions & 26 deletions ui/src/pages/FAQ/FAQ.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { FAQ_ITEMS, URL_FAQ_STRING_MATCH } from './faq-util/faq-text';
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
import ExpandLessIcon from '@mui/icons-material/ExpandLess';
import { useLocation } from 'react-router-dom';
import IDESAllElements from '@/Assets/Images/IDES_all_elements.pdf';

export function FAQ() {
const [expanded, setExpanded] = useState<string[]>([]);
Expand Down Expand Up @@ -108,31 +107,6 @@ export function FAQ() {
</Accordion>
);
})}
<Accordion
expanded={expanded.includes(`panel${FAQ_ITEMS.length}`)}
onChange={handleAccordianChange(`panel${FAQ_ITEMS.length}`)}
id={`faq-${FAQ_ITEMS.length}`}
key={`faq-${FAQ_ITEMS.length}`}
>
<AccordionSummary
expandIcon={<ExpandMoreIcon />}
aria-controls={`panel${FAQ_ITEMS.length}-content`}
id={`panel${FAQ_ITEMS.length}-header`}
>
<Typography component={'div'} variant="body1">
Do you have a printable figure of the electrochemical series including all elements?
</Typography>
</AccordionSummary>
<AccordionDetails>
<Typography component={'div'} variant="body1">
Yes, you may download this{' '}
<a href={IDESAllElements} download={`IDES_All_Elements.pdf`}>
figure
</a>
.
</Typography>
</AccordionDetails>
</Accordion>
</div>
</div>
</div>
Expand Down
3 changes: 3 additions & 0 deletions ui/src/pages/FAQ/faq-util/faq-text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ export const FAQ_ITEMS: FAQText[] = [
question: 'Can I download all of the oxidation state ranges?',
answer: `
The oxidation state ranges for all available species can be downloaded in JSON format <a rel='noopener noreferrer' target='_blank' href='https://www.oxi.matr.io/oxidation_boundaries.json'>here</a>. The units are the same as those used on this web site.
<br /> You can also download a high-resolution
<a rel='noopener noreferrer' target='_blank' href='/IDES_all_elements.pdf'>graphical representation</a>
of the oxidation state ranges for all 84 elements included in our model.
`
}
];

0 comments on commit e91290a

Please sign in to comment.