更新 'src/components/users.js'
This commit is contained in:
parent
72bc40f322
commit
b2d1dc0be1
@ -9,7 +9,6 @@ import PermMediaIcon from "@material-ui/icons/PermMedia";
|
||||
import PersonPinIcon from "@material-ui/icons/PersonPin";
|
||||
import SettingsInputComponentIcon from "@material-ui/icons/SettingsInputComponent";
|
||||
import ViewListIcon from "@material-ui/icons/ViewList";
|
||||
import { FunctionField } from 'react-admin';
|
||||
|
||||
import {
|
||||
ArrayInput,
|
||||
@ -473,9 +472,9 @@ export const UserEdit = props => {
|
||||
</FormTab>
|
||||
|
||||
<FormTab
|
||||
label={translate("resources.p3url.name", { smart_count: 2 })}
|
||||
label={translate("resources.urlpreview.name", { smart_count: 2 })}
|
||||
icon={<PermMediaIcon />}
|
||||
path="urlpreview"
|
||||
path="user_urlpreview"
|
||||
>
|
||||
<ReferenceManyField
|
||||
reference="user_urlpreview"
|
||||
@ -486,15 +485,11 @@ export const UserEdit = props => {
|
||||
sort={{ field: "created_ts", order: "DESC" }}
|
||||
>
|
||||
<Datagrid style={{ width: "100%" }}>
|
||||
<DateField source="created_ts" showTime options={date_format} />
|
||||
<TextField source="media_id" />
|
||||
<TextField source="url_cache" />
|
||||
|
||||
<DateField source="created_ts" showTime options={date_format} sortable={false} />
|
||||
<TextField source="media_id" sortable={false} />
|
||||
<TextField source="url_cache" sortable={false} />
|
||||
</Datagrid>
|
||||
|
||||
|
||||
</ReferenceManyField>
|
||||
|
||||
</FormTab>
|
||||
|
||||
<FormTab
|
||||
|
Loading…
Reference in New Issue
Block a user