From 980ad792c54316433f887be9f425da9b3dac9ca3 Mon Sep 17 00:00:00 2001 From: Jori Lallo Date: Tue, 31 Oct 2017 21:55:46 -0700 Subject: [PATCH] addressed comments --- app/components/ColorPicker/ColorPicker.js | 6 +++--- server/models/Document.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/components/ColorPicker/ColorPicker.js b/app/components/ColorPicker/ColorPicker.js index f82ee599f..f95d857ec 100644 --- a/app/components/ColorPicker/ColorPicker.js +++ b/app/components/ColorPicker/ColorPicker.js @@ -6,7 +6,7 @@ import styled from 'styled-components'; import Flex from 'shared/components/Flex'; import { LabelText, Outline } from 'components/Input'; import { color, fonts, fontWeight } from 'shared/styles/constants'; -import { validateColorHex } from '../../../shared/utils/color'; +import { validateColorHex } from 'shared/utils/color'; const colors = [ '#4E5C6E', @@ -21,7 +21,7 @@ const colors = [ ]; type Props = { - onSelect: string => void, + onSelect: (color: string) => void, value?: string, }; @@ -119,7 +119,7 @@ type Props = { } type SwatchProps = { - onClick?: Function, + onClick?: () => void, color?: string, active?: boolean, }; diff --git a/server/models/Document.js b/server/models/Document.js index 61028013b..3bbf8c9ed 100644 --- a/server/models/Document.js +++ b/server/models/Document.js @@ -5,7 +5,7 @@ import randomstring from 'randomstring'; import isUUID from 'validator/lib/isUUID'; import { DataTypes, sequelize } from '../sequelize'; -import parseTitle from '../../shared/utils/parseTitle.js'; +import parseTitle from '../../shared/utils/parseTitle'; import Revision from './Revision'; const URL_REGEX = /^[a-zA-Z0-9-]*-([a-zA-Z0-9]{10,15})$/;