File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import 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' ;
33import { useCallback , useState } from 'react' ;
44import { getPresetSize } from '@/app/image_generator/presetSize' ;
55import { 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 ) ) ;
You can’t perform that action at this time.
0 commit comments