Fix coding style
This commit is contained in:
parent
83b313e3a6
commit
8687a18c5b
@ -8,37 +8,36 @@ import {
|
|||||||
DateField,
|
DateField,
|
||||||
} from "react-admin";
|
} from "react-admin";
|
||||||
|
|
||||||
|
|
||||||
export const ConnectionsShow = props => (
|
export const ConnectionsShow = props => (
|
||||||
<Show {...props} >
|
<Show {...props}>
|
||||||
<SimpleForm toolbar={false} >
|
<SimpleForm toolbar={false}>
|
||||||
<TextField source="user_id" label="resources.users.fields.id" />
|
<TextField source="user_id" label="resources.users.fields.id" />
|
||||||
<ArrayField
|
<ArrayField
|
||||||
source="devices[].sessions[0].connections"
|
source="devices[].sessions[0].connections"
|
||||||
label="resources.connections.name"
|
label="resources.connections.name"
|
||||||
>
|
>
|
||||||
<Datagrid style={{width: "100%"}}>
|
<Datagrid style={{ width: "100%" }}>
|
||||||
<TextField source="ip" sortable={false} />
|
<TextField source="ip" sortable={false} />
|
||||||
<DateField
|
<DateField
|
||||||
source="last_seen"
|
source="last_seen"
|
||||||
showTime
|
showTime
|
||||||
options={{
|
options={{
|
||||||
year: 'numeric',
|
year: "numeric",
|
||||||
month: '2-digit',
|
month: "2-digit",
|
||||||
day: '2-digit',
|
day: "2-digit",
|
||||||
hour: '2-digit',
|
hour: "2-digit",
|
||||||
minute: '2-digit',
|
minute: "2-digit",
|
||||||
second: '2-digit',
|
second: "2-digit",
|
||||||
}}
|
}}
|
||||||
sortable={false}
|
sortable={false}
|
||||||
/>
|
/>
|
||||||
<TextField
|
<TextField
|
||||||
source="user_agent"
|
source="user_agent"
|
||||||
sortable={false}
|
sortable={false}
|
||||||
style={{width: "100%"}}
|
style={{ width: "100%" }}
|
||||||
/>
|
/>
|
||||||
</Datagrid>
|
</Datagrid>
|
||||||
</ArrayField>
|
</ArrayField>
|
||||||
</SimpleForm>
|
</SimpleForm>
|
||||||
</Show>
|
</Show>
|
||||||
);
|
);
|
||||||
|
|||||||
@ -89,4 +89,4 @@ export const UserEdit = props => (
|
|||||||
<BooleanInput source="deactivated" />
|
<BooleanInput source="deactivated" />
|
||||||
</SimpleForm>
|
</SimpleForm>
|
||||||
</Edit>
|
</Edit>
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user