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:
Juan Picado @jotadeveloper
2019-05-16 07:25:40 -07:00
committed by GitHub
parent 233ba196a0
commit 980dac5b2f
9 changed files with 144 additions and 82 deletions

View File

@@ -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'}>