Skip to content

Commit

Permalink
Fix lego-bricks not working without react-router
Browse files Browse the repository at this point in the history
  • Loading branch information
Bestem0r committed Sep 18, 2024
1 parent 9fd0b0b commit 383c67b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/lego-bricks/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@webkom/lego-bricks",
"version": "1.2.1",
"version": "1.3.3",
"description": "Component library for lego and other Abakus projects",
"author": "webkom",
"license": "MIT",
Expand Down
6 changes: 3 additions & 3 deletions packages/lego-bricks/src/components/Layout/Page/Page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import cx from 'classnames';
import { NavLink } from 'react-router-dom';
import { Link } from 'react-aria-components';
import { ButtonGroup } from '../../Button/ButtonGroup';
import { Icon } from '../../Icon';
import { Skeleton } from '../../Skeleton';
Expand Down Expand Up @@ -52,10 +52,10 @@ const Page = ({
>
<Flex column className={cx(styles.content, classNames?.content)}>
{back && (
<NavLink to={back.href} className={styles.back}>
<Link href={back.href} className={styles.back}>
<Icon name="arrow-back" size={18} className={styles.backIcon} />
<span className={styles.backLabel}>{back.label ?? 'Tilbake'}</span>
</NavLink>
</Link>
)}
<Flex
wrap
Expand Down

0 comments on commit 383c67b

Please sign in to comment.