From 383c67b1c61de7031390a898df29450a0678728a Mon Sep 17 00:00:00 2001 From: Vebjorn Elvekrok Date: Wed, 18 Sep 2024 20:37:01 +0200 Subject: [PATCH] Fix lego-bricks not working without react-router --- packages/lego-bricks/package.json | 2 +- packages/lego-bricks/src/components/Layout/Page/Page.tsx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/lego-bricks/package.json b/packages/lego-bricks/package.json index 6f236b9df5..b1af05cb25 100644 --- a/packages/lego-bricks/package.json +++ b/packages/lego-bricks/package.json @@ -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", diff --git a/packages/lego-bricks/src/components/Layout/Page/Page.tsx b/packages/lego-bricks/src/components/Layout/Page/Page.tsx index 38351c4878..3265748fc6 100644 --- a/packages/lego-bricks/src/components/Layout/Page/Page.tsx +++ b/packages/lego-bricks/src/components/Layout/Page/Page.tsx @@ -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'; @@ -52,10 +52,10 @@ const Page = ({ > {back && ( - + {back.label ?? 'Tilbake'} - + )}