generated from Luis/nextjs-python-web-template
[Entities] AP Attachment View Table
- fixed the router problem for different views - implemented the attachment-table in the access point view
This commit is contained in:
@@ -1,12 +1,26 @@
|
||||
import { DashboardCard } from "@/components/card";
|
||||
import { NoDataOverlay } from "@/components/noDataOverlay";
|
||||
import {DashboardCard} from "@/components/card";
|
||||
import {NoDataOverlay} from "@/components/noDataOverlay";
|
||||
import {ReactNode} from "react";
|
||||
import CustomTable from "@/components/table";
|
||||
import {ICustomTable} from "@/types";
|
||||
|
||||
export const RecentActivity = () => {
|
||||
return (
|
||||
<DashboardCard title="Recent Activity">
|
||||
<div className="flex w-full justify-center align-middle">
|
||||
<NoDataOverlay label="No Activity yet" />
|
||||
</div>
|
||||
</DashboardCard>
|
||||
);
|
||||
interface DashboardCardProps {
|
||||
title: ReactNode;
|
||||
data: ReactNode;
|
||||
configuration: ICustomTable;
|
||||
}
|
||||
|
||||
export const RecentActivity = (props: DashboardCardProps) => {
|
||||
const {title, data, configuration} = props;
|
||||
return (
|
||||
<DashboardCard title={title}>
|
||||
{/*<div className="flex w-full justify-center align-middle">*/}
|
||||
{/* <NoDataOverlay label="No Activity yet"/>*/}
|
||||
{/*</div>*/}
|
||||
|
||||
<div>
|
||||
<CustomTable data={data} configuration={configuration}/>
|
||||
</div>
|
||||
</DashboardCard>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user