formatting index.tsx

This commit is contained in:
Arslan, Erdem
2024-01-21 21:56:03 +01:00
parent 7ae1d5f768
commit ea0148fdaf

View File

@@ -19,17 +19,17 @@ export const ClientTableConfig = [
setIsLoading(true);
fetch(value)
.then((response) => {
setIsLoading(false)
setIsLoading(false);
console.log(response);
})
.catch((error) => {
setIsLoading(false)
setIsLoading(false);
console.log("Fetch error: ", error);
});
};
return (
<Button onClick={onConsume} variant="outlined">
{isLoading ? <CircularProgress size={20} /> : 'Consume'}
{isLoading ? <CircularProgress size={20} /> : "Consume"}
</Button>
);
},