Fix types
This commit is contained in:
parent
2e488f9436
commit
78132229af
7 changed files with 3 additions and 18 deletions
|
@ -150,7 +150,6 @@ const CollectionCreatePage: React.StatelessComponent<
|
|||
errors={formErrors}
|
||||
disabled={disabled}
|
||||
onChange={change}
|
||||
translate="collection"
|
||||
/>
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
|
|
@ -125,7 +125,6 @@ const CollectionDetailsPage: React.StatelessComponent<
|
|||
errors={formErrors}
|
||||
disabled={disabled}
|
||||
onChange={change}
|
||||
translate="collection"
|
||||
>
|
||||
<ControlledCheckbox
|
||||
name={"isFeatured" as keyof CollectionDetailsPageFormData}
|
||||
|
|
|
@ -43,7 +43,6 @@ interface VisibilityCardProps extends WithStyles<typeof styles> {
|
|||
errors: { [key: string]: string };
|
||||
disabled?: boolean;
|
||||
onChange(event: any);
|
||||
translate: string;
|
||||
}
|
||||
|
||||
export const VisibilityCard = withStyles(styles, {
|
||||
|
@ -55,8 +54,7 @@ export const VisibilityCard = withStyles(styles, {
|
|||
data: { isPublished, publicationDate },
|
||||
errors,
|
||||
disabled,
|
||||
onChange,
|
||||
translate
|
||||
onChange
|
||||
}: VisibilityCardProps) => {
|
||||
const intl = useIntl();
|
||||
const [isPublicationDate, setPublicationDate] = React.useState(
|
||||
|
@ -77,8 +75,7 @@ export const VisibilityCard = withStyles(styles, {
|
|||
defaultMessage: "since {date}"
|
||||
},
|
||||
{
|
||||
date: localizeDate(publicationDate),
|
||||
description: translate
|
||||
date: localizeDate(publicationDate)
|
||||
}
|
||||
)
|
||||
: null
|
||||
|
@ -92,8 +89,7 @@ export const VisibilityCard = withStyles(styles, {
|
|||
defaultMessage: "will be visible from {date}"
|
||||
},
|
||||
{
|
||||
date: localizeDate(publicationDate),
|
||||
description: translate
|
||||
date: localizeDate(publicationDate)
|
||||
}
|
||||
)
|
||||
: null
|
||||
|
|
|
@ -1,11 +1,5 @@
|
|||
import Card from "@material-ui/core/Card";
|
||||
import CardContent from "@material-ui/core/CardContent";
|
||||
import {
|
||||
createStyles,
|
||||
Theme,
|
||||
WithStyles,
|
||||
withStyles
|
||||
} from "@material-ui/core/styles";
|
||||
import TextField from "@material-ui/core/TextField";
|
||||
import React from "react";
|
||||
import { useIntl } from "react-intl";
|
||||
|
|
|
@ -124,7 +124,6 @@ const PageDetailsPage: React.StatelessComponent<PageDetailsPageProps> = ({
|
|||
disabled={disabled}
|
||||
errors={formErrors}
|
||||
onChange={change}
|
||||
translate="product"
|
||||
/>
|
||||
</div>
|
||||
</Grid>
|
||||
|
|
|
@ -281,7 +281,6 @@ export const ProductCreatePage: React.StatelessComponent<
|
|||
errors={errors}
|
||||
disabled={disabled}
|
||||
onChange={change}
|
||||
translate="page"
|
||||
/>
|
||||
</div>
|
||||
</Grid>
|
||||
|
|
|
@ -291,7 +291,6 @@ export const ProductUpdatePage: React.FC<ProductUpdatePageProps> = ({
|
|||
errors={errors}
|
||||
disabled={disabled}
|
||||
onChange={change}
|
||||
translate="product"
|
||||
/>
|
||||
</div>
|
||||
</Grid>
|
||||
|
|
Loading…
Reference in a new issue