Skip to content

Commit

Permalink
feat(image): image
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepy-zone committed Dec 22, 2023
1 parent c06f7d0 commit c6a2f1c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fabritor-web",
"version": "1.0.0",
"version": "2.0.0",
"description": "fabritor-web",
"dependencies": {
"@ant-design/icons": "^5.2.6",
Expand Down
12 changes: 6 additions & 6 deletions src/fabritor/UI/panel/ImagePanel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function ImagePanel () {
}

const addPixabay = (item) => {
createImage({
createFImage({
imageSource: item.cover
});
}
Expand All @@ -39,11 +39,11 @@ export default function ImagePanel () {
)
}

// useEffect(() => {
// fetchPhotos('photo').then(setPhotos);
// fetchPhotos('illustration').then(setIllustrations);
// fetchPhotos('vector').then(setVectors);
// }, []);
useEffect(() => {
fetchPhotos('photo').then(setPhotos);
fetchPhotos('illustration').then(setIllustrations);
fetchPhotos('vector').then(setVectors);
}, []);

return (
<div className="fabritor-panel-wrapper">
Expand Down

0 comments on commit c6a2f1c

Please sign in to comment.