generated from Luis/nextjs-python-web-template
small formatting fixes
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
"use client";
|
"use client";
|
||||||
import { useEffect, useMemo, useRef, useState } from "react";
|
import { useEffect, useMemo, useState } from "react";
|
||||||
import { ClientTableConfig, ServiceTableConfig } from "@/config/client_1";
|
import { ClientTableConfig, ServiceTableConfig } from "@/config/client_1";
|
||||||
import CustomTable from "@/components/table";
|
import CustomTable from "@/components/table";
|
||||||
import {
|
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;
|
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,
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
import { Button, IconButton, Tooltip } from "@mui/material";
|
import { Button } 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 EntityActions from "@/components/entity_actions";
|
import EntityActions from "@/components/entity_actions";
|
||||||
|
|
||||||
export const ClientTableConfig = [
|
export const ClientTableConfig = [
|
||||||
|
|||||||
Reference in New Issue
Block a user