Skip to content

Commit 098e7e4

Browse files
Add close button for error condition
1 parent d4185af commit 098e7e4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/frontend/src/components/importer/ImporterDrawer.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,12 @@ export default function ImporterDrawer(
8383
const widget = useMemo(() => {
8484
if (session.sessionQuery.isError) {
8585
return (
86-
<Alert color='red' title={t`Error`} icon={<IconExclamationCircle />}>
87-
{t`Failed to fetch import session data`}
88-
</Alert>
86+
<Stack gap='xs'>
87+
<Alert color='red' title={t`Error`} icon={<IconExclamationCircle />}>
88+
{t`Failed to fetch import session data`}
89+
</Alert>
90+
<Button color='red' onClick={props.onClose}>{t`Close`}</Button>
91+
</Stack>
8992
);
9093
}
9194

0 commit comments

Comments
 (0)