пользовательский текст ошибки во время коннекта с GQL

This commit is contained in:
vchikalkin 2022-12-28 09:53:05 +03:00
parent de6527a4f6
commit 99fb6bdf8f

View File

@ -26,7 +26,13 @@ export default (Component, storesList) => () => {
const RetryButton = (
<Button text="Попробовать еще раз" action={() => res.execute()}></Button>
);
return <ServerError extra={[RetryButton]} />;
return (
<ServerError
extra={[RetryButton]}
title="CRM не отвечает. Попробуйте позже."
subTitle={'' + res.error || ''}
/>
);
}
return <Component />;