
* Require trailing commas * Add trailing commas * Add trailing commas in testUtils dir * Add trailing commas
13 lines
364 B
TypeScript
13 lines
364 B
TypeScript
import { MenuErrorFragment } from "@saleor/graphql";
|
|
import { IntlShape } from "react-intl";
|
|
|
|
import { getCommonFormFieldErrorMessage } from "./common";
|
|
|
|
function getMenuErrorMessage(
|
|
err: Omit<MenuErrorFragment, "__typename"> | undefined,
|
|
intl: IntlShape,
|
|
): string {
|
|
return getCommonFormFieldErrorMessage(err, intl);
|
|
}
|
|
|
|
export default getMenuErrorMessage;
|