addressed comments
This commit is contained in:
@@ -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,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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})$/;
|
||||||
|
|||||||
Reference in New Issue
Block a user