fix(image-annotator): move canvas proxy helper inside component
This commit is contained in:
parent
20cb4f0149
commit
46ce28adad
@ -108,6 +108,9 @@ export function ImageAnnotator({
|
||||
const [mounted, setMounted] = useState(false);
|
||||
|
||||
const fileInputRef = useRef<HTMLInputElement>(null);
|
||||
const toCanvasLoadUrl = useCallback((url: string) => {
|
||||
return buildImageProxyUrl(url);
|
||||
}, []);
|
||||
|
||||
// Handle open change
|
||||
const handleOpenChange = (newOpen: boolean) => {
|
||||
@ -1986,6 +1989,3 @@ export function ImageAnnotator({
|
||||
</Dialog>
|
||||
);
|
||||
}
|
||||
const toCanvasLoadUrl = useCallback((url: string) => {
|
||||
return buildImageProxyUrl(url);
|
||||
}, []);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user