From 54118b567e2c38595d6272d3f90a405c633c7819 Mon Sep 17 00:00:00 2001 From: Dmitry Osipov Date: Fri, 22 Sep 2023 12:19:31 +0200 Subject: [PATCH] feat: fixes after review --- webapp/packages/core-blocks/src/ExceptionMessage.tsx | 7 ++----- webapp/packages/core-blocks/src/index.ts | 1 + 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/webapp/packages/core-blocks/src/ExceptionMessage.tsx b/webapp/packages/core-blocks/src/ExceptionMessage.tsx index 9ffceecdc04..c0361409da3 100644 --- a/webapp/packages/core-blocks/src/ExceptionMessage.tsx +++ b/webapp/packages/core-blocks/src/ExceptionMessage.tsx @@ -6,9 +6,6 @@ * you may not use this file except in compliance with the License. */ import { observer } from 'mobx-react-lite'; -import styled, { css, use } from 'reshadow'; - -import type { ComponentStyle } from '@cloudbeaver/core-theming'; import { Button } from './Button'; import style from './ExceptionMessage.m.css'; @@ -18,7 +15,7 @@ import { useTranslate } from './localization/useTranslate'; import { s } from './s'; import { useErrorDetails } from './useErrorDetails'; import { useS } from './useS'; -import { useStyles } from './useStyles'; + interface Props { exception?: Error; icon?: boolean; @@ -43,7 +40,7 @@ export const ExceptionMessage = observer(function ExceptionMessage({ exce } return ( -
+
diff --git a/webapp/packages/core-blocks/src/index.ts b/webapp/packages/core-blocks/src/index.ts index 9afc20209b7..6510e9a9f6d 100644 --- a/webapp/packages/core-blocks/src/index.ts +++ b/webapp/packages/core-blocks/src/index.ts @@ -161,6 +161,7 @@ export * from './ErrorMessage'; export * from './preventFocusHandler'; export * from './StatusMessage'; export * from './ExceptionMessage'; +export { default as ExceptionMessageStyles } from './ExceptionMessage.m.css'; export * from './getComputed'; export * from './IconButton'; export { default as IconButtonStyles } from './IconButton.m.css';