-
-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor navigation links to use useNavigate and update CSS class nam…
…es for consistency
- Loading branch information
Showing
24 changed files
with
235 additions
and
126 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
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
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
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
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 |
---|---|---|
@@ -1,40 +1,45 @@ | ||
import React from 'react' | ||
import { useNavigate } from 'react-router-dom' | ||
import { Accordion, AccordionDetails, AccordionSummary, Button } from '@mui/material' | ||
import { ExpandMore } from '@mui/icons-material' | ||
import { strings } from '@/lang/faq-list' | ||
|
||
import '@/assets/css/faq-list.css' | ||
|
||
const Faq = () => ( | ||
<div className="faq-list"> | ||
<h2>{strings.FAQ_TITLE}</h2> | ||
<div className="questions"> | ||
<Accordion> | ||
<AccordionSummary expandIcon={<ExpandMore />} className="accordion-title">{strings.FAQ_DOCUMENTS_TITLE}</AccordionSummary> | ||
<AccordionDetails className="accordion-details">{strings.FAQ_DOCUMENTS_TEXT}</AccordionDetails> | ||
</Accordion> | ||
<Accordion> | ||
<AccordionSummary expandIcon={<ExpandMore />} className="accordion-title">{strings.FAQ_SERVICES_TITLE}</AccordionSummary> | ||
<AccordionDetails className="accordion-details">{strings.FAQ_SERVICES_TEXT}</AccordionDetails> | ||
</Accordion> | ||
const Faq = () => { | ||
const navigate = useNavigate() | ||
|
||
<Accordion> | ||
<AccordionSummary expandIcon={<ExpandMore />} className="accordion-title">{strings.FAQ_AGE_TITLE}</AccordionSummary> | ||
<AccordionDetails className="accordion-details">{strings.FAQ_AGE_TEXT}</AccordionDetails> | ||
</Accordion> | ||
<Accordion> | ||
<AccordionSummary expandIcon={<ExpandMore />} className="accordion-title">{strings.FAQ_CANCEL_TITLE}</AccordionSummary> | ||
<AccordionDetails className="accordion-details">{strings.FAQ_CANCEL_TEXT}</AccordionDetails> | ||
</Accordion> | ||
return ( | ||
<div className="faq-list"> | ||
<h2>{strings.FAQ_TITLE}</h2> | ||
<div className="questions"> | ||
<Accordion> | ||
<AccordionSummary expandIcon={<ExpandMore />} className="accordion-title">{strings.FAQ_DOCUMENTS_TITLE}</AccordionSummary> | ||
<AccordionDetails className="accordion-details">{strings.FAQ_DOCUMENTS_TEXT}</AccordionDetails> | ||
</Accordion> | ||
<Accordion> | ||
<AccordionSummary expandIcon={<ExpandMore />} className="accordion-title">{strings.FAQ_SERVICES_TITLE}</AccordionSummary> | ||
<AccordionDetails className="accordion-details">{strings.FAQ_SERVICES_TEXT}</AccordionDetails> | ||
</Accordion> | ||
|
||
<Accordion> | ||
<AccordionSummary expandIcon={<ExpandMore />} className="accordion-title">{strings.FAQ_AGE_TITLE}</AccordionSummary> | ||
<AccordionDetails className="accordion-details">{strings.FAQ_AGE_TEXT}</AccordionDetails> | ||
</Accordion> | ||
<Accordion> | ||
<AccordionSummary expandIcon={<ExpandMore />} className="accordion-title">{strings.FAQ_CANCEL_TITLE}</AccordionSummary> | ||
<AccordionDetails className="accordion-details">{strings.FAQ_CANCEL_TEXT}</AccordionDetails> | ||
</Accordion> | ||
</div> | ||
<Button | ||
variant="contained" | ||
className="btn-primary btn-home" | ||
onClick={() => navigate('/contact')} | ||
> | ||
{strings.MORE_QUESTIONS} | ||
</Button> | ||
</div> | ||
<Button | ||
variant="contained" | ||
className="btn-primary btn-home" | ||
href="/contact" | ||
> | ||
{strings.MORE_QUESTIONS} | ||
</Button> | ||
</div> | ||
) | ||
) | ||
} | ||
|
||
export default Faq |
Oops, something went wrong.