
* Use Auth SDK * Update auth provider hook * Update sdk module mapping * Update setting password * Fix no user details on first login * Update auth tests * Cleanups * Update SDK Update SDK Update SDK Update test recordings Update SDK * Implement SDK External Auth Update new password view Hnalde external logout Update SDK Fix logout external redirect * Fix login page style * Update SDK * Auth Provider cleanups Update and refactor auth Auth types cleanups and refactor * Update channel context provider * Fix login error handling * Logout immidiatelly non-staff user * Update test snapshots * Trigger CI * Update to SDK v0.4, remove duplicated UserContext hook * Handle server errors during login * Fix wrong login page form submition handling * Update login error messages Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
13 lines
343 B
TypeScript
13 lines
343 B
TypeScript
import { StaffErrorFragment } from "@saleor/fragments/types/StaffErrorFragment";
|
|
import { IntlShape } from "react-intl";
|
|
|
|
import getAccountErrorMessage from "./account";
|
|
|
|
function getStaffErrorMessage(
|
|
err: StaffErrorFragment,
|
|
intl: IntlShape
|
|
): string {
|
|
return getAccountErrorMessage(err, intl);
|
|
}
|
|
|
|
export default getStaffErrorMessage;
|