From 3f384c451f54c865f59ff12462dc0b1d69468c06 Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Mon, 27 Mar 2023 18:37:33 +0300 Subject: [PATCH] =?UTF-8?q?pages/index:=20return=20403=20error=20for=20non?= =?UTF-8?q?=20=D0=9C=D0=9F=D0=9B=20users=20role?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/Components/Common/Error.jsx | 21 ++++++++++++++ apps/web/graphql/crm.query.graphql | 3 ++ apps/web/graphql/crm.types.ts | 4 +-- apps/web/pages/index.jsx | 41 ++++++++++++++++++---------- 4 files changed, 53 insertions(+), 16 deletions(-) diff --git a/apps/web/Components/Common/Error.jsx b/apps/web/Components/Common/Error.jsx index fc7d6cf..04362df 100644 --- a/apps/web/Components/Common/Error.jsx +++ b/apps/web/Components/Common/Error.jsx @@ -1,3 +1,4 @@ +/* eslint-disable sonarjs/no-small-switch */ import Button from 'ui/elements/Button'; import Result from 'ui/elements/Result'; @@ -5,7 +6,12 @@ function handleRetry() { window.location.reload(); } +function openSupport() { + window.open('https://support.evoleasing.ru', '_blank').focus(); +} + const RetryButton =