on master help sign in
move ColorInput
commita5800018455a944930da05c90d879ad766e97eab authorLiam Fitzgerald <liam@urizen.co> dateFri 31 Jan 2020, 16:34 (7 years ago) parent97280b6
3 files changed+3−3
src/indigo-react/components/ColorInput.js → src/form/ColorInput.js+1−1 src/indigo-react/index.js−1 src/views/SigilGenerator.js+2−1
src/indigo-react/components/ColorInput.js → src/form/ColorInput.jsrenamed+1−1
@@ -1,7 +1,7 @@
11import React from 'react';
22import { useField } from 'react-final-form';
33import cn from 'classnames';
4−import Flex from './Flex';
4+import { Flex } from 'indigo-react';
55
66const ColorInput = ({ name, colors, disabled = false, label, className }) => {
77 const { input } = useField(name, { subscription: { value: true } });
src/indigo-react/index.js−1
@@ -9,6 +9,5 @@ export { default as AccessoryIcon } from './components/AccessoryIcon';
99export { default as Button } from './components/Button';
1010export { default as IconButton } from './components/IconButton';
1111export { default as LinkButton } from './components/LinkButton';
12−export { default as ColorInput } from './components/ColorInput';
1312
1413export * from './components/Typography';
src/views/SigilGenerator.js+2−1
@@ -1,5 +1,5 @@
11import React, { useRef, useCallback } from 'react';
2−import { Grid, Flex, ColorInput } from 'indigo-react';
2+import { Grid, Flex } from 'indigo-react';
33import * as ob from 'urbit-ob';
44import { FORM_ERROR } from 'final-form';
55import { colors } from 'indigo-tokens';
@@ -18,6 +18,7 @@ import BridgeForm from 'form/BridgeForm';
1818import FormError from 'form/FormError';
1919import SubmitButton from 'form/SubmitButton';
2020import { NumberInput } from 'form/Inputs';
21+import ColorInput from 'form/ColorInput';
2122
2223const BG_COLORS = [
2324 colors.black,