aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/ui/Link.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/ui/Link.tsx')
-rw-r--r--src/components/ui/Link.tsx12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/components/ui/Link.tsx b/src/components/ui/Link.tsx
index f9fdd57f9..816798d79 100644
--- a/src/components/ui/Link.tsx
+++ b/src/components/ui/Link.tsx
@@ -1,9 +1,14 @@
1import { Component, CSSProperties, ReactNode, MouseEvent } from 'react';
2import { inject, observer } from 'mobx-react';
3import classnames from 'classnames'; 1import classnames from 'classnames';
2import { inject, observer } from 'mobx-react';
3import {
4 type CSSProperties,
5 Component,
6 type MouseEvent,
7 type ReactNode,
8} from 'react';
9import type { StoresProps } from '../../@types/ferdium-components.types';
4import matchRoute from '../../helpers/routing-helpers'; 10import matchRoute from '../../helpers/routing-helpers';
5import { openExternalUrl } from '../../helpers/url-helpers'; 11import { openExternalUrl } from '../../helpers/url-helpers';
6import { StoresProps } from '../../@types/ferdium-components.types';
7 12
8interface IProps extends Partial<StoresProps> { 13interface IProps extends Partial<StoresProps> {
9 children: ReactNode; 14 children: ReactNode;
@@ -54,7 +59,6 @@ class Link extends Component<IProps> {
54 }); 59 });
55 60
56 return ( 61 return (
57 // biome-ignore lint/a11y/useValidAnchor: <explanation>
58 <a 62 <a
59 href={router.history.createHref(to)} 63 href={router.history.createHref(to)}
60 className={linkClasses} 64 className={linkClasses}