Move in progress apps temporarily
This commit is contained in:
parent
ba04aa108c
commit
6eaaf8e9be
360 changed files with 6171 additions and 55 deletions
|
|
@ -1,23 +0,0 @@
|
|||
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;
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
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;
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
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