Change default image
Make url link start with http://
This commit is contained in:
@ -84,7 +84,7 @@ function formatValue(value, validator, type = 'string') {
|
||||
}
|
||||
|
||||
function isValidURL(data) {
|
||||
return isURL(data, { 'require_protocol': false });
|
||||
return isURL(data, { 'require_protocol': true });
|
||||
}
|
||||
|
||||
function makeRequired(validator) {
|
||||
@ -100,7 +100,7 @@ export default contain({
|
||||
locale,
|
||||
description,
|
||||
email,
|
||||
url,
|
||||
url = 'http://',
|
||||
logo,
|
||||
company,
|
||||
isHighlighted,
|
||||
|
@ -2,8 +2,7 @@ import React, { PropTypes } from 'react';
|
||||
import { Row, Col, Thumbnail, Panel } from 'react-bootstrap';
|
||||
|
||||
const defaultImage =
|
||||
'https://pbs.twimg.com/' +
|
||||
'profile_images/562385977390272512/AK29YaTf_400x400.png';
|
||||
'https://s3.amazonaws.com/freecodecamp/camper-image-placeholder.png';
|
||||
|
||||
const thumbnailStyle = {
|
||||
backgroundColor: 'white',
|
||||
|
Reference in New Issue
Block a user