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) {
|
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,
|
||||||
|
@ -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',
|
||||||
|
Reference in New Issue
Block a user