addressed comments

This commit is contained in:
Jori Lallo
2017-10-31 21:55:46 -07:00
parent 148cf8ad33
commit 980ad792c5
2 changed files with 4 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ import styled from 'styled-components';
import Flex from 'shared/components/Flex'; import Flex from 'shared/components/Flex';
import { LabelText, Outline } from 'components/Input'; import { LabelText, Outline } from 'components/Input';
import { color, fonts, fontWeight } from 'shared/styles/constants'; import { color, fonts, fontWeight } from 'shared/styles/constants';
import { validateColorHex } from '../../../shared/utils/color'; import { validateColorHex } from 'shared/utils/color';
const colors = [ const colors = [
'#4E5C6E', '#4E5C6E',
@@ -21,7 +21,7 @@ const colors = [
]; ];
type Props = { type Props = {
onSelect: string => void, onSelect: (color: string) => void,
value?: string, value?: string,
}; };
@@ -119,7 +119,7 @@ type Props = {
} }
type SwatchProps = { type SwatchProps = {
onClick?: Function, onClick?: () => void,
color?: string, color?: string,
active?: boolean, active?: boolean,
}; };

View File

@@ -5,7 +5,7 @@ import randomstring from 'randomstring';
import isUUID from 'validator/lib/isUUID'; import isUUID from 'validator/lib/isUUID';
import { DataTypes, sequelize } from '../sequelize'; import { DataTypes, sequelize } from '../sequelize';
import parseTitle from '../../shared/utils/parseTitle.js'; import parseTitle from '../../shared/utils/parseTitle';
import Revision from './Revision'; import Revision from './Revision';
const URL_REGEX = /^[a-zA-Z0-9-]*-([a-zA-Z0-9]{10,15})$/; const URL_REGEX = /^[a-zA-Z0-9-]*-([a-zA-Z0-9]{10,15})$/;