Skip to content

Commit

Permalink
added compare link to form 7 and new button routing
Browse files Browse the repository at this point in the history
  • Loading branch information
tfhuhtal committed Oct 29, 2024
1 parent 8712804 commit f29f6f5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ const MetaOverview = ({
{t('overview:readAnswers')}
</Button>
</MenuItem>
<MenuItem>
<Button data-cy="nav-comparison" as={Link} to="/report?form=7" size="big">
{t('overview:compareAnswers')}
</Button>
</MenuItem>
<DegreeDropdown />
<FacultyDropdown
t={t}
Expand Down
5 changes: 3 additions & 2 deletions client/components/ReportPage/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useEffect, useState } from 'react'
import { useDispatch, useSelector } from 'react-redux'
import { Link } from 'react-router-dom'
import { useHistory } from 'react-router-dom'
import { Accordion, Button, Icon, Grid, Tab, Menu } from 'semantic-ui-react'
import { useTranslation } from 'react-i18next'

Expand All @@ -24,6 +24,7 @@ import './ReportPage.scss'
export default () => {
const { t } = useTranslation()
const dispatch = useDispatch()
const history = useHistory()
const [openQuestions, setOpenQuestions] = useState(false)
const [filter, setFilter] = useState('')
const [picked, setPicked] = useState([])
Expand Down Expand Up @@ -155,7 +156,7 @@ export default () => {
<div className="no-print">
<Menu secondary>
<Menu.Item>
<Button as={Link} to="/yearly" icon="arrow left" size="small" />
<Button onClick={() => history.goBack()} icon="arrow left" size="small" />
</Menu.Item>
<Menu.Item>
<h1>{t('report:reportPage')}</h1>
Expand Down

0 comments on commit f29f6f5

Please sign in to comment.