Skip to content

Commit 680a7a5

Browse files
committed
cancel button
1 parent dbc4ec7 commit 680a7a5

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/apps/review/src/pages/scorecards/EditScorecardPage/EditScorecardPage.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ import { useNavigate, useParams } from 'react-router-dom'
55
import { toast } from 'react-toastify'
66

77
import { yupResolver } from '@hookform/resolvers/yup'
8-
import { Button } from '~/libs/ui'
8+
import { Button, LinkButton } from '~/libs/ui'
99

1010
import { useFetchScorecard } from '../../../lib/hooks/useFetchScorecard'
1111
import { saveScorecard } from '../../../lib/services'
1212
import { rootRoute } from '../../../config/routes.config'
13+
import { PageWrapper } from '../../../lib'
1314

1415
import { getEmptyScorecard } from './utils'
1516
import { EditScorecardPageContextProvider } from './EditScorecardPage.context'
1617
import ScorecardGroupForm, { scorecardGroupSchema } from './components/ScorecardGroupForm'
1718
import ScorecardInfoForm, { scorecardInfoSchema } from './components/ScorecardInfoForm'
1819
import styles from './EditScorecardPage.module.scss'
19-
import { PageWrapper } from '../../../lib'
2020

2121
const EditScorecardPage: FC = () => {
2222
const navigate = useNavigate()
@@ -26,7 +26,7 @@ const EditScorecardPage: FC = () => {
2626
const scorecardQuery = useFetchScorecard(params.scorecardId)
2727
const title = useMemo(() => (
2828
`${isEditMode ? 'Edit' : 'Create'} Scorecard`
29-
), [isEditMode]);
29+
), [isEditMode])
3030
const breadCrumb = useMemo(
3131
() => [
3232
{ index: 1, label: 'Scorecards', path: '..' },
@@ -88,9 +88,9 @@ const EditScorecardPage: FC = () => {
8888
<div className={styles.bottomContainer}>
8989
<hr />
9090
<div className={styles.buttonsWrap}>
91-
<Button type='button' secondary uiv2>
91+
<LinkButton to='..' type='button' secondary uiv2>
9292
Cancel
93-
</Button>
93+
</LinkButton>
9494
<Button type='submit' primary disabled={isSaving || !editForm.formState.isDirty} uiv2>
9595
Save Scorecard
9696
</Button>

src/apps/review/src/pages/scorecards/ScorecardsListPage/ScorecardsListPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ export const ScorecardsListPage: FC<{}> = () => {
8282
<LinkButton
8383
uiv2
8484
secondary
85-
to={'new'}
86-
label="+ Add New Scorecard"
85+
to='new'
86+
label='+ Add New Scorecard'
8787
/>
8888
)}
8989
>

0 commit comments

Comments
 (0)