Change default image

Make url link start with http://
This commit is contained in:
Berkeley Martinez
2015-10-27 17:28:11 -07:00
parent d1242d8d43
commit 2dd16796d7
2 changed files with 3 additions and 4 deletions

View File

@ -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,

View File

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