import SaveButton and yarn fix
This commit is contained in:
parent
6133f7f4f1
commit
a247221478
@ -13,6 +13,7 @@ import {
|
|||||||
NumberField,
|
NumberField,
|
||||||
NumberInput,
|
NumberInput,
|
||||||
regex,
|
regex,
|
||||||
|
SaveButton,
|
||||||
SimpleForm,
|
SimpleForm,
|
||||||
TextInput,
|
TextInput,
|
||||||
TextField,
|
TextField,
|
||||||
@ -87,7 +88,11 @@ export const RegistrationTokenList = props => {
|
|||||||
export const RegistrationTokenCreate = props => (
|
export const RegistrationTokenCreate = props => (
|
||||||
<Create redirect="list">
|
<Create redirect="list">
|
||||||
<SimpleForm
|
<SimpleForm
|
||||||
toolbar={<Toolbar {...props}><SaveButton alwaysEnable /></Toolbar>}
|
toolbar={
|
||||||
|
<Toolbar {...props}>
|
||||||
|
<SaveButton alwaysEnable />
|
||||||
|
</Toolbar>
|
||||||
|
}
|
||||||
>
|
>
|
||||||
<TextInput
|
<TextInput
|
||||||
source="token"
|
source="token"
|
||||||
|
@ -131,10 +131,7 @@ export const DestinationList = props => {
|
|||||||
export const DestinationShow = props => {
|
export const DestinationShow = props => {
|
||||||
const translate = useTranslate();
|
const translate = useTranslate();
|
||||||
return (
|
return (
|
||||||
<Show
|
<Show actions={<DestinationShowActions />} title={<DestinationTitle />}>
|
||||||
actions={<DestinationShowActions />}
|
|
||||||
title={<DestinationTitle />}
|
|
||||||
>
|
|
||||||
<TabbedShowLayout>
|
<TabbedShowLayout>
|
||||||
<Tab label="status" icon={<ViewListIcon />}>
|
<Tab label="status" icon={<ViewListIcon />}>
|
||||||
<TextField source="destination" />
|
<TextField source="destination" />
|
||||||
|
@ -17,14 +17,8 @@ import { DeleteMediaButton } from "./media";
|
|||||||
|
|
||||||
const ListActions = props => {
|
const ListActions = props => {
|
||||||
const { className, exporter, filters, maxResults, ...rest } = props;
|
const { className, exporter, filters, maxResults, ...rest } = props;
|
||||||
const {
|
const { sort, resource, displayedFilters, filterValues, showFilter, total } =
|
||||||
sort,
|
useListContext();
|
||||||
resource,
|
|
||||||
displayedFilters,
|
|
||||||
filterValues,
|
|
||||||
showFilter,
|
|
||||||
total,
|
|
||||||
} = useListContext();
|
|
||||||
return (
|
return (
|
||||||
<TopToolbar className={className} {...sanitizeListRestProps(rest)}>
|
<TopToolbar className={className} {...sanitizeListRestProps(rest)}>
|
||||||
{filters &&
|
{filters &&
|
||||||
|
Loading…
Reference in New Issue
Block a user