generated from Luis/nextjs-python-web-template
small formatting fixes
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
"use client";
|
||||
import { useEffect, useMemo, useRef, useState } from "react";
|
||||
import { useEffect, useMemo, useState } from "react";
|
||||
import { ClientTableConfig, ServiceTableConfig } from "@/config/client_1";
|
||||
import CustomTable from "@/components/table";
|
||||
import {
|
||||
|
||||
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;
|
||||
}>(SNACKBAR_DEFAULT);
|
||||
|
||||
console.error("Error registering/deregistering:", error);
|
||||
if (error) console.error("Error registering/deregistering:", error);
|
||||
|
||||
const onDeleteEntity = async () => {
|
||||
if (rowData)
|
||||
@@ -34,7 +34,6 @@ const EntityActions = ({ endpointData, rowData }: Props) => {
|
||||
const response = await deleteEntity({
|
||||
entity_did: rowData?.entity_did,
|
||||
});
|
||||
console.log("On Delete:", response.data.message);
|
||||
setSnackbar({
|
||||
open: true,
|
||||
message: response.data.message,
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
import { Button, IconButton, Tooltip } from "@mui/material";
|
||||
import AddCircleIcon from "@mui/icons-material/AddCircle";
|
||||
import RemoveCircleIcon from "@mui/icons-material/RemoveCircle";
|
||||
import DeleteIcon from "@mui/icons-material/Delete";
|
||||
import { Button } from "@mui/material";
|
||||
import EntityActions from "@/components/entity_actions";
|
||||
|
||||
export const ClientTableConfig = [
|
||||
|
||||
Reference in New Issue
Block a user