mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
(nextjs) fixed eslint warnings
This commit is contained in:
parent
c469722a86
commit
e5f8d5a551
29 changed files with 56 additions and 59 deletions
|
@ -6,10 +6,10 @@ import { Link } from 'react-router-dom';
|
|||
|
||||
interface AnchorProps extends LinkProps {}
|
||||
|
||||
const Anchor: VFC<AnchorProps> = ({ ref, href, ...rest }) =>
|
||||
const Anchor: VFC<AnchorProps> = ({ ref, href, children, ...rest }) =>
|
||||
CONFIG.isNextEnvironment ? (
|
||||
<NextLink href={href ?? ''} passHref>
|
||||
<a {...rest} />
|
||||
<a {...rest}>{children}</a>
|
||||
</NextLink>
|
||||
) : (
|
||||
<Link {...rest} to={href ?? ''} />
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import React, { FC, forwardRef, useCallback } from 'react';
|
||||
import React, { forwardRef, useCallback } from 'react';
|
||||
import { getURLFromString } from '~/utils/dom';
|
||||
import { PRESETS } from '~/constants/urls';
|
||||
import styles from './styles.module.scss';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue