created dlg table config with dummy data
Some checks failed
checks-impure / test (pull_request) Successful in 28s
checks / test (pull_request) Failing after 2m24s

This commit is contained in:
sara-pervana
2023-11-19 15:37:16 +01:00
parent e4ad34dbd1
commit da251c992c
3 changed files with 36 additions and 2 deletions

View File

@@ -1,5 +1,7 @@
import { DashboardCard } from "@/components/card";
import { NoDataOverlay } from "@/components/noDataOverlay";
import CustomTable from "@/components/table";
import { DLGTableConfig, DLGdummyData } from "@/mock/DLG";
export const RecentActivity = () => {
return (
@@ -7,6 +9,10 @@ export const RecentActivity = () => {
<div className="flex w-full justify-center align-middle">
<NoDataOverlay label="No Activity yet" />
</div>
<div>
<CustomTable data={DLGdummyData} configuration={DLGTableConfig} />
</div>
</DashboardCard>
);
};

View File

@@ -0,0 +1,28 @@
export const DLGdummyData = [
{
requester_name: "C1",
"requester_did": "did:sov:test:1234",
"did_resolved": "did:sov:test:123",
"timestamp": "2023.11.01.17:05:48"
}
]
export const DLGTableConfig = [
{
key: "requester_name",
label: "Requester Name"
},
{
key: "requester_did",
label: "Requester DID"
},
{
key: "did_resolved",
label: "DID Resolved"
},
{
key: "timestamp",
label: "Timestamp"
},
]

View File

@@ -1,6 +1,6 @@
/** @type {import('tailwindcss').Config} */
import colors from "@clan/colors/colors.json";
// import colors from "../theme/src/colors.json";
// import colors from "@clan/colors/colors.json";
import colors from "../theme/src/colors.json";
const {
ref: { palette, common },