Skip to content

Commit

Permalink
add same function style
Browse files Browse the repository at this point in the history
  • Loading branch information
horeaporutiu committed Sep 20, 2023
1 parent 6ec3f65 commit 1573eb7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/ai-image-generator/pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,16 @@ export default function Main({ boards, authUrl }) {
};

// Shows spinner while API calls are in progress / image is being dragged & dropped
async function showSpinner() {
const showSpinner = async () => {
let spinner = await document.getElementById("spinner");
spinner.style.visibility = "visible";
}
};

// Removes spinner when API calls are finished and data is returned / image has been dropped
async function removeSpinner() {
const removeSpinner = async () => {
let spinner = await document.getElementById("spinner");
spinner.style.visibility = "hidden";
}
};

const handleButtonClick = async () => {
//setting the image source to be a transparent color, otherwise we have a border which looks bad
Expand Down

0 comments on commit 1573eb7

Please sign in to comment.