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) { function isValidURL(data) {
return isURL(data, { 'require_protocol': false }); return isURL(data, { 'require_protocol': true });
} }
function makeRequired(validator) { function makeRequired(validator) {
@ -100,7 +100,7 @@ export default contain({
locale, locale,
description, description,
email, email,
url, url = 'http://',
logo, logo,
company, company,
isHighlighted, isHighlighted,

View File

@ -2,8 +2,7 @@ import React, { PropTypes } from 'react';
import { Row, Col, Thumbnail, Panel } from 'react-bootstrap'; import { Row, Col, Thumbnail, Panel } from 'react-bootstrap';
const defaultImage = const defaultImage =
'https://pbs.twimg.com/' + 'https://s3.amazonaws.com/freecodecamp/camper-image-placeholder.png';
'profile_images/562385977390272512/AK29YaTf_400x400.png';
const thumbnailStyle = { const thumbnailStyle = {
backgroundColor: 'white', backgroundColor: 'white',