Move metamigo assets to metamigo-add

This commit is contained in:
Darren Clarke 2023-08-25 11:04:38 +02:00
parent aab5b7f5d5
commit 28f7f0f47b
71 changed files with 3 additions and 2 deletions

View file

@ -0,0 +1,13 @@
"use client";
import { List, Datagrid, TextField } from "react-admin";
const WhatsappAttachmentList = (props: any) => (
<List {...props} exporter={false}>
<Datagrid rowClick="show">
<TextField source="id" />
</Datagrid>
</List>
);
export default WhatsappAttachmentList;

View file

@ -0,0 +1,13 @@
"use client";
import { Show, ShowProps, SimpleShowLayout, TextField } from "react-admin";
const WhatsappAttachmentShow = (props: ShowProps) => (
<Show {...props} title="Whatsapp Attachment">
<SimpleShowLayout>
<TextField source="id" />
</SimpleShowLayout>
</Show>
);
export default WhatsappAttachmentShow;

View file

@ -0,0 +1,12 @@
"use client";
import WhatsappAttachmentIcon from "@mui/icons-material/AttachFile";
import WhatsappAttachmentList from "./WhatsappAttachmentList";
import WhatsappAttachmentShow from "./WhatsappAttachmentShow";
// eslint-disable-next-line import/no-anonymous-default-export
export default {
list: WhatsappAttachmentList,
show: WhatsappAttachmentShow,
icon: WhatsappAttachmentIcon,
};