generated from Luis/nextjs-python-web-template
small formatting fixes
This commit is contained in:
committed by
Sara Pervana
parent
2f6ad476b3
commit
697d2685f3
5
pkgs/ui/src/components/consume_action/index.tsx
Normal file
5
pkgs/ui/src/components/consume_action/index.tsx
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
const ConsumeAction = () => {
|
||||||
|
return <></>;
|
||||||
|
};
|
||||||
|
|
||||||
|
export default ConsumeAction;
|
||||||
@@ -26,7 +26,7 @@ const EntityActions = ({ endpointData, rowData }: Props) => {
|
|||||||
severity: AlertColor;
|
severity: AlertColor;
|
||||||
}>(SNACKBAR_DEFAULT);
|
}>(SNACKBAR_DEFAULT);
|
||||||
|
|
||||||
console.error("Error registering/deregistering:", error);
|
if (error) console.error("Error registering/deregistering:", error);
|
||||||
|
|
||||||
const onDeleteEntity = async () => {
|
const onDeleteEntity = async () => {
|
||||||
if (rowData)
|
if (rowData)
|
||||||
@@ -34,7 +34,6 @@ const EntityActions = ({ endpointData, rowData }: Props) => {
|
|||||||
const response = await deleteEntity({
|
const response = await deleteEntity({
|
||||||
entity_did: rowData?.entity_did,
|
entity_did: rowData?.entity_did,
|
||||||
});
|
});
|
||||||
console.log("On Delete:", response.data.message);
|
|
||||||
setSnackbar({
|
setSnackbar({
|
||||||
open: true,
|
open: true,
|
||||||
message: response.data.message,
|
message: response.data.message,
|
||||||
|
|||||||
Reference in New Issue
Block a user