Skip to content

Commit a25367c

Browse files
committed
fix: color関係をビルドできるように
1 parent e6b3536 commit a25367c

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/app/image_generator/useImageGenerator.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { Color } from 'antd/es/color-picker';
2-
import { ColorFactory } from 'antd/es/color-picker/color';
2+
import { AggregationColor } from 'antd/es/color-picker/color';
33
import { useCallback, useState } from 'react';
44
import { getPresetSize } from '@/app/image_generator/presetSize';
55
import { useCustomForm } from '@/components/common/Form/useCustomForm';
@@ -19,8 +19,8 @@ export const DEFAULT_VALUES: ImageGeneratorForm = {
1919
wight: 256,
2020
height: 256,
2121
type: 'jpg',
22-
bgColor: new ColorFactory('ffffff00'),
23-
textColor: new ColorFactory('1668dc00'),
22+
bgColor: new AggregationColor('ffffff'),
23+
textColor: new AggregationColor('1668dc'),
2424
tab: 'unsplash',
2525
text: '',
2626
textSize: undefined,
@@ -67,7 +67,6 @@ export const useImageGenerator = () => {
6767

6868
const onClickGenerate = useCallback(() => {
6969
const values = getValues();
70-
console.log(values);
7170
switch (values.tab) {
7271
case 'unsplash':
7372
setSrc(createUnsplashURL(values));

0 commit comments

Comments
 (0)