Skip to content

Commit

Permalink
fix(finefoods): ignore type errors (#3152)
Browse files Browse the repository at this point in the history
  • Loading branch information
aliemir authored Dec 7, 2022
1 parent a7124ca commit f06e017
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export const OrderTimeline: React.FC = () => {

return (
<>
{/* @ts-expect-error Material UI packages are having issues with incompatibilities with react@17 types and react@18 types. Referring issue: https://github.com/mui/material-ui/issues/35287 */}
<Timeline position="right" sx={{ mt: 0, pt: 0 }}>
{data?.data.map(({ createdAt, orderNumber, status, id }) => {
const text = orderStatusColor(status.id.toString())?.text;
Expand Down
4 changes: 2 additions & 2 deletions examples/fineFoods/admin/mui/src/pages/couriers/create.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -320,11 +320,11 @@ export const CourierCreate: React.FC<IResourceComponentsProps> = () => {
),
})}
>
{/* // eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error */}
{/* @ts-expect-error False alarm */}
{(
props: TextFieldProps,
) => (
// @ts-expect-error Incompatible types
<TextField
{...props}
size="small"
Expand Down
5 changes: 2 additions & 3 deletions examples/fineFoods/admin/mui/src/pages/couriers/edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -332,12 +332,11 @@ export const CourierEdit: React.FC<IResourceComponentsProps> = () => {
),
})}
>
{/*
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error */}
{/* @ts-expect-error False alarm */}
{(
props: TextFieldProps,
) => (
// @ts-expect-error Incompatible types
<TextField
{...props}
size="small"
Expand Down
5 changes: 2 additions & 3 deletions examples/fineFoods/admin/mui/src/pages/stores/create.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,9 @@ export const StoreCreate: React.FC<IResourceComponentsProps> = () => {
mask="(999) 999 99 99"
disabled={false}
>
{/*
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error */}
{/* @ts-expect-error False alarm */}
{(props: TextFieldProps) => (
// @ts-expect-error Incompatible types
<TextField
{...props}
size="small"
Expand Down
5 changes: 2 additions & 3 deletions examples/fineFoods/admin/mui/src/pages/stores/edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,9 @@ export const StoreEdit: React.FC<IResourceComponentsProps> = () => {
mask="(999) 999 99 99"
disabled={false}
>
{/*
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error */}
{/* @ts-expect-error False alarm */}
{(props: TextFieldProps) => (
// @ts-expect-error Incompatible types
<TextField
{...props}
size="small"
Expand Down

0 comments on commit f06e017

Please sign in to comment.