Organize directories
This commit is contained in:
parent
8a91c9b89b
commit
4898382f78
433 changed files with 0 additions and 0 deletions
|
|
@ -0,0 +1,23 @@
|
|||
import {
|
||||
List,
|
||||
ListProps,
|
||||
Datagrid,
|
||||
DateField,
|
||||
TextField,
|
||||
BooleanField,
|
||||
} from "react-admin";
|
||||
|
||||
const WhatsappMessageList = (props: ListProps) => (
|
||||
<List {...props} exporter={false}>
|
||||
<Datagrid rowClick="show">
|
||||
<TextField source="phoneNumber" />
|
||||
<TextField source="description" />
|
||||
<BooleanField source="isVerified" />
|
||||
<DateField source="createdAt" />
|
||||
<DateField source="updatedAt" />
|
||||
<TextField source="createdBy" />
|
||||
</Datagrid>
|
||||
</List>
|
||||
);
|
||||
|
||||
export default WhatsappMessageList;
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
import {
|
||||
Show,
|
||||
ShowProps,
|
||||
SimpleShowLayout,
|
||||
TextField,
|
||||
ReferenceManyField,
|
||||
Datagrid,
|
||||
} from "react-admin";
|
||||
|
||||
const WhatsappMessageShow = (props: ShowProps) => (
|
||||
<Show {...props} title="Whatsapp Message">
|
||||
<SimpleShowLayout>
|
||||
<TextField source="waMessage" />
|
||||
<TextField source="createdAt" />
|
||||
<ReferenceManyField
|
||||
label="Attachments"
|
||||
reference="whatsappAttachments"
|
||||
target="whatsappMessageId"
|
||||
>
|
||||
<Datagrid rowClick="show">
|
||||
<TextField source="id" />
|
||||
<TextField source="createdAt" />
|
||||
</Datagrid>
|
||||
</ReferenceManyField>
|
||||
</SimpleShowLayout>
|
||||
</Show>
|
||||
);
|
||||
|
||||
export default WhatsappMessageShow;
|
||||
10
apps/metamigo-frontend/components/whatsapp/messages/index.ts
Normal file
10
apps/metamigo-frontend/components/whatsapp/messages/index.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import WhatsappMessageIcon from "@material-ui/icons/Message";
|
||||
import WhatsappMessageList from "./WhatsappMessageList";
|
||||
import WhatsappMessageShow from "./WhatsappMessageShow";
|
||||
|
||||
// eslint-disable-next-line import/no-anonymous-default-export
|
||||
export default {
|
||||
list: WhatsappMessageList,
|
||||
show: WhatsappMessageShow,
|
||||
icon: WhatsappMessageIcon,
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue