Fix coding style
This commit is contained in:
parent
00d3069efd
commit
759cfa21f2
@ -1,16 +1,10 @@
|
||||
import React from "react";
|
||||
import {
|
||||
Datagrid,
|
||||
List,
|
||||
TextField,
|
||||
SearchInput,
|
||||
Filter
|
||||
} from "react-admin";
|
||||
import { Datagrid, List, TextField, SearchInput, Filter } from "react-admin";
|
||||
|
||||
const RoomFilter = (props) => (
|
||||
<Filter {...props}>
|
||||
<SearchInput source="search_term" alwaysOn />
|
||||
</Filter>
|
||||
<Filter {...props}>
|
||||
<SearchInput source="search_term" alwaysOn />
|
||||
</Filter>
|
||||
);
|
||||
|
||||
export const RoomList = props => (
|
||||
|
@ -58,7 +58,7 @@ const dataProvider = {
|
||||
const { user_id, guests, deactivated, search_term } = params.filter;
|
||||
const { page, perPage } = params.pagination;
|
||||
var { field, order } = params.sort;
|
||||
if ( order === "DESC") {
|
||||
if (order === "DESC") {
|
||||
order = "b";
|
||||
} else {
|
||||
order = "f";
|
||||
|
Loading…
Reference in New Issue
Block a user