Skip to content

Commit

Permalink
Refactoring button and remove the link around, better usage for scree…
Browse files Browse the repository at this point in the history
…n reader

Co-authored-by: andregroseth <[email protected]>
Co-authored-by: JeremiahUy <[email protected]>
  • Loading branch information
3 people committed Oct 25, 2023
1 parent 5bcc7cf commit 211bdaf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions apps/frontend/src/pages/KravListPage.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import {useEffect, useState} from 'react'
import CustomizedBreadcrumbs from '../components/common/CustomizedBreadcrumbs'
import RouteLink from '../components/common/RouteLink'
import {user} from '../services/User'
import moment from 'moment'
import {Krav, KravQL} from '../constants'
Expand Down Expand Up @@ -48,11 +47,9 @@ export const KravListPage = () => {

<div className="flex justify-end">
{user.isKraveier() && (
<RouteLink hideUnderline href="/krav/ny">
<Button iconPosition="left" icon={<PlusIcon/>} size="medium">
<Button iconPosition="left" icon={<PlusIcon/>} size="medium" as="a" href="/krav/ny">
Nytt krav
</Button>
</RouteLink>
)}
</div>
</div>
Expand Down

0 comments on commit 211bdaf

Please sign in to comment.