Skip to content

Commit e694ea8

Browse files
committed
feat: adjust errorMessage ui
1 parent 501912c commit e694ea8

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/components/KymaCompanion/components/Chat/messages/ErrorMessage.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
import { Button, Card, IllustratedMessage } from '@ui5/webcomponents-react';
1+
import {
2+
Button,
3+
Card,
4+
IllustratedMessage,
5+
Text,
6+
} from '@ui5/webcomponents-react';
27
import { useTranslation } from 'react-i18next';
38

49
interface ErrorMessageProps {
@@ -22,7 +27,9 @@ export default function ErrorMessage({
2227
design="Spot"
2328
key="error-message"
2429
titleText={t('kyma-companion.error.title')}
25-
subtitleText={errorMessage}
30+
subtitle={
31+
<Text className="sap-margin-bottom-tiny">{errorMessage}</Text>
32+
}
2633
className="sap-margin-top-small no-padding"
2734
>
2835
{displayRetry && (

0 commit comments

Comments
 (0)