Skip to content

Commit

Permalink
Add link from the results page to the contact page, skip shibbolet fo…
Browse files Browse the repository at this point in the history
…r now
  • Loading branch information
HRemonen committed Feb 21, 2023
1 parent 8a80c22 commit ae7ef62
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/client/components/ContactPage/Contact.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const Contact = () => {

<Box sx={classes.card}>
<FormControl>
<FormLabel id="contact-method-buttons">
<FormLabel sx={{ mt: 2 }} id="contact-method-buttons">
{t('contact:contactMethodLabel')}
</FormLabel>
<RadioGroup
Expand Down
8 changes: 2 additions & 6 deletions src/client/components/ContactPage/Ticket.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ const Ticket = () => {
error={errors.title ? true : false} // eslint-disable-line no-unneeded-ternary
/>
{errors.title && (
<Typography variant="inherit" color="textSecondary">
{errors.title?.message}
</Typography>
<Typography variant="body2">{errors.title?.message}</Typography>
)}

<TextField
Expand All @@ -61,9 +59,7 @@ const Ticket = () => {
error={errors.content ? true : false} // eslint-disable-line no-unneeded-ternary
/>
{errors.content && (
<Typography variant="inherit" color="textSecondary">
{errors.content?.message}
</Typography>
<Typography variant="body2">{errors.content?.message}</Typography>
)}
<Box mt={3}>
<Button
Expand Down
4 changes: 1 addition & 3 deletions src/client/components/ResultPage/EmailForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ const EmailForm = () => {
error={errors.email ? true : false} // eslint-disable-line no-unneeded-ternary
/>
{errors.email && (
<Typography variant="inherit" color="textSecondary">
{errors.email?.message}
</Typography>
<Typography variant="body2">{errors.email?.message}</Typography>
)}
<Box mt={3}>
<Button
Expand Down
9 changes: 8 additions & 1 deletion src/client/components/ResultPage/Ending.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { useState } from 'react'
import { Link } from 'react-router-dom'
import { useTranslation } from 'react-i18next'
import { Box, Button, Container, Stack, Typography } from '@mui/material'

Expand Down Expand Up @@ -39,7 +40,13 @@ const Ending = () => {
>
{t('results:proceedToExit')}
</Button>
<Button sx={classes.stackButton} variant="contained">

<Button
sx={classes.stackButton}
variant="contained"
component={Link}
to="/contact"
>
{t('results:proceedToConsultation')}
</Button>
</>
Expand Down

0 comments on commit ae7ef62

Please sign in to comment.