2020-02-07 18:19:01 +03:00
|
|
|
import React from "react";
|
2020-03-27 23:02:37 +03:00
|
|
|
import { Datagrid, List, TextField, Pagination } from "react-admin";
|
|
|
|
|
|
|
|
const RoomPagination = props => (
|
|
|
|
<Pagination {...props} rowsPerPageOptions={[10, 25, 50, 100, 500, 1000]} />
|
|
|
|
);
|
2020-02-07 18:19:01 +03:00
|
|
|
|
|
|
|
export const RoomList = props => (
|
2020-03-27 23:02:37 +03:00
|
|
|
<List {...props} pagination={<RoomPagination />}>
|
2020-02-07 18:19:01 +03:00
|
|
|
<Datagrid>
|
|
|
|
<TextField source="room_id" />
|
|
|
|
<TextField source="name" />
|
|
|
|
<TextField source="canonical_alias" />
|
|
|
|
<TextField source="joined_members" />
|
|
|
|
</Datagrid>
|
|
|
|
</List>
|
|
|
|
);
|