forstok-ui-lib 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "forstok-ui-lib",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Forstok UI Components Library",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -1,4 +1,5 @@
1
1
  import type { ReactNode, AnchorHTMLAttributes } from 'react';
2
+ import { BrowserRouter as Router } from 'react-router-dom';
2
3
  import type { LinkProps, Path } from 'react-router-dom';
3
4
  import { LinkContainer } from './link.styles';
4
5
 
@@ -15,7 +16,7 @@ type TLinkBase = {
15
16
  type TLink = LinkProps & AnchorHTMLAttributes<HTMLAnchorElement> & TLinkBase;
16
17
 
17
18
  const LinkRouteComponent = ({ children, mode, $activated, $elipsis, to, $shadow, disabled, ...props }: TLink) => {
18
- return <LinkContainer className='_refLink' to={to} mode={mode} $activated={$activated ? true : false} $elipsis={$elipsis ? true : false} $shadow={$shadow ? true : false} disabled={disabled ? true : false} {...props}>{children}</LinkContainer>;
19
+ return <Router><LinkContainer className='_refLink' to={to} mode={mode} $activated={$activated ? true : false} $elipsis={$elipsis ? true : false} $shadow={$shadow ? true : false} disabled={disabled ? true : false} {...props}>{children}</LinkContainer></Router>;
19
20
  };
20
21
 
21
22
  export default LinkRouteComponent;