Fix coding style
This commit is contained in:
parent
accd3692c5
commit
57d97a7ae6
@ -2,16 +2,11 @@ import React from "react";
|
|||||||
import { Datagrid, List, TextField, Pagination } from "react-admin";
|
import { Datagrid, List, TextField, Pagination } from "react-admin";
|
||||||
|
|
||||||
const RoomPagination = props => (
|
const RoomPagination = props => (
|
||||||
<Pagination
|
<Pagination {...props} rowsPerPageOptions={[10, 25, 50, 100, 500, 1000]} />
|
||||||
{...props}
|
);
|
||||||
rowsPerPageOptions={[10, 25, 50, 100, 500, 1000]}
|
|
||||||
/>);
|
|
||||||
|
|
||||||
export const RoomList = props => (
|
export const RoomList = props => (
|
||||||
<List
|
<List {...props} pagination={<RoomPagination />}>
|
||||||
{...props}
|
|
||||||
pagination={<RoomPagination />}
|
|
||||||
>
|
|
||||||
<Datagrid>
|
<Datagrid>
|
||||||
<TextField source="room_id" />
|
<TextField source="room_id" />
|
||||||
<TextField source="name" />
|
<TextField source="name" />
|
||||||
|
@ -14,14 +14,12 @@ import {
|
|||||||
TextInput,
|
TextInput,
|
||||||
ReferenceField,
|
ReferenceField,
|
||||||
regex,
|
regex,
|
||||||
Pagination
|
Pagination,
|
||||||
} from "react-admin";
|
} from "react-admin";
|
||||||
|
|
||||||
const UserPagination = props => (
|
const UserPagination = props => (
|
||||||
<Pagination
|
<Pagination {...props} rowsPerPageOptions={[10, 25, 50, 100, 500, 1000]} />
|
||||||
{...props}
|
);
|
||||||
rowsPerPageOptions={[10, 25, 50, 100, 500, 1000]}
|
|
||||||
/>);
|
|
||||||
|
|
||||||
const UserFilter = props => (
|
const UserFilter = props => (
|
||||||
<Filter {...props}>
|
<Filter {...props}>
|
||||||
|
Loading…
Reference in New Issue
Block a user