chore: Remove console.log statements from ThumbnailList component
This commit is contained in:
parent
db333e06e0
commit
55068138ba
@ -4,6 +4,8 @@ import { memo } from 'react'
|
||||
function ThumbnailList(props) {
|
||||
const { thumbnails } = props
|
||||
|
||||
console.log('ThumbnailList')
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="flex justify-center m-4 w-full">
|
||||
|
||||
@ -1,13 +1,6 @@
|
||||
import { useEffect, useRef, useState } from 'react'
|
||||
import { fabric } from 'fabric'
|
||||
import {
|
||||
actionHandler,
|
||||
anchorWrapper,
|
||||
calculateIntersection,
|
||||
distanceBetweenPoints,
|
||||
polygonPositionHandler,
|
||||
test,
|
||||
} from '@/util/canvas-util'
|
||||
import { actionHandler, anchorWrapper, calculateIntersection, distanceBetweenPoints, polygonPositionHandler, test } from '@/util/canvas-util'
|
||||
|
||||
import { useRecoilState } from 'recoil'
|
||||
import { canvasSizeState, fontSizeState } from '@/store/canvasAtom'
|
||||
@ -509,9 +502,11 @@ export function useCanvas(id) {
|
||||
* @param {string} title - 저장할 이미지 이름
|
||||
*/
|
||||
const saveImage = async (title = 'canvas') => {
|
||||
await writeImage(title, canvas?.toDataURL('image/png').replace('data:image/png;base64,', '')).then(res => {
|
||||
await writeImage(title, canvas?.toDataURL('image/png').replace('data:image/png;base64,', ''))
|
||||
.then((res) => {
|
||||
console.log('success', res)
|
||||
}).catch(err => {
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log('err', err)
|
||||
})
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user