Skip to content
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

changes for TRI-37217 #162

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
`
}
];
Loading