generated from Luis/nextjs-python-web-template
Added a lot of fixes #73
@@ -19,17 +19,17 @@ export const ClientTableConfig = [
|
|||||||
setIsLoading(true);
|
setIsLoading(true);
|
||||||
fetch(value)
|
fetch(value)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
setIsLoading(false)
|
setIsLoading(false);
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
setIsLoading(false)
|
setIsLoading(false);
|
||||||
console.log("Fetch error: ", error);
|
console.log("Fetch error: ", error);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
return (
|
return (
|
||||||
<Button onClick={onConsume} variant="outlined">
|
<Button onClick={onConsume} variant="outlined">
|
||||||
{isLoading ? <CircularProgress size={20} /> : 'Consume'}
|
{isLoading ? <CircularProgress size={20} /> : "Consume"}
|
||||||
</Button>
|
</Button>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user