Skip to content

Commit

Permalink
feat: fixes after review
Browse files Browse the repository at this point in the history
  • Loading branch information
teunlao committed Sep 22, 2023
1 parent 18e6456 commit 54118b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
7 changes: 2 additions & 5 deletions webapp/packages/core-blocks/src/ExceptionMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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;
Expand All @@ -43,7 +40,7 @@ export const ExceptionMessage = observer<Props>(function ExceptionMessage({ exce
}

return (
<div {...use({ inline, icon })} className={s(styles, { error: true, icon, inline }, className)}>
<div className={s(styles, { error: true, icon, inline }, className)}>
<div className={s(styles, { errorIcon: true })} title={error.message}>
<IconOrImage className={s(styles, { iconOrImage: true })} icon={inline || icon ? '/icons/error_icon_sm.svg' : '/icons/error_icon.svg'} />
</div>
Expand Down
1 change: 1 addition & 0 deletions webapp/packages/core-blocks/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 54118b5

Please sign in to comment.