forked from sombochea/verdaccio-ui
fix: verify validation url and email (#60)
* fix: verify validation url and email * chore: disable one expect * fix: lint issue * fix: fix lint
This commit is contained in:
committed by
GitHub
parent
233ba196a0
commit
980dac5b2f
@@ -34,6 +34,7 @@ import {
|
||||
Text,
|
||||
WrapperLink,
|
||||
} from './styles';
|
||||
import { isURL } from '../../utils/url';
|
||||
|
||||
const Package = ({
|
||||
author: { name: authorName, avatar: authorAvatar },
|
||||
@@ -92,7 +93,8 @@ const Package = ({
|
||||
);
|
||||
|
||||
const renderHomePageLink = () =>
|
||||
homepage && (
|
||||
homepage &&
|
||||
isURL(homepage) && (
|
||||
<a href={homepage} target={'_blank'}>
|
||||
<Tooltip aria-label={'Homepage'} title={'Visit homepage'}>
|
||||
<IconButton aria-label={'Homepage'}>
|
||||
@@ -104,7 +106,8 @@ const Package = ({
|
||||
);
|
||||
|
||||
const renderBugsLink = () =>
|
||||
url && (
|
||||
url &&
|
||||
isURL(url) && (
|
||||
<a href={url} target={'_blank'}>
|
||||
<Tooltip aria-label={'Bugs'} title={'Open an issue'}>
|
||||
<IconButton aria-label={'Bugs'}>
|
||||
|
||||
Reference in New Issue
Block a user