mirror of
https://github.com/voltbonn/profile-picture-generator.git
synced 2024-12-22 15:55:08 +00:00
removed foreground frome callback dependecy
This commit is contained in:
parent
7aee89b586
commit
d9f131e163
1 changed files with 1 additions and 4 deletions
|
@ -83,10 +83,7 @@ function Editor({ onChange, background, backgroundRatio, foreground }) {
|
||||||
setPhotoWidth(new_photoWidth)
|
setPhotoWidth(new_photoWidth)
|
||||||
setPhotoHeight(new_photoHeight)
|
setPhotoHeight(new_photoHeight)
|
||||||
}
|
}
|
||||||
}, [
|
}, [backgroundRatio])
|
||||||
backgroundRatio,
|
|
||||||
foreground,
|
|
||||||
])
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const {
|
const {
|
||||||
|
|
Loading…
Reference in a new issue