import SaveButton and yarn fix

This commit is contained in:
dklimpel 2024-02-06 07:45:36 +01:00
parent 6133f7f4f1
commit a247221478
3 changed files with 9 additions and 13 deletions

View File

@ -13,6 +13,7 @@ import {
NumberField,
NumberInput,
regex,
SaveButton,
SimpleForm,
TextInput,
TextField,
@ -87,7 +88,11 @@ export const RegistrationTokenList = props => {
export const RegistrationTokenCreate = props => (
<Create redirect="list">
<SimpleForm
toolbar={<Toolbar {...props}><SaveButton alwaysEnable /></Toolbar>}
toolbar={
<Toolbar {...props}>
<SaveButton alwaysEnable />
</Toolbar>
}
>
<TextInput
source="token"

View File

@ -131,10 +131,7 @@ export const DestinationList = props => {
export const DestinationShow = props => {
const translate = useTranslate();
return (
<Show
actions={<DestinationShowActions />}
title={<DestinationTitle />}
>
<Show actions={<DestinationShowActions />} title={<DestinationTitle />}>
<TabbedShowLayout>
<Tab label="status" icon={<ViewListIcon />}>
<TextField source="destination" />

View File

@ -17,14 +17,8 @@ import { DeleteMediaButton } from "./media";
const ListActions = props => {
const { className, exporter, filters, maxResults, ...rest } = props;
const {
sort,
resource,
displayedFilters,
filterValues,
showFilter,
total,
} = useListContext();
const { sort, resource, displayedFilters, filterValues, showFilter, total } =
useListContext();
return (
<TopToolbar className={className} {...sanitizeListRestProps(rest)}>
{filters &&