mirror of
https://github.com/aljazceru/goose.git
synced 2025-12-22 08:34:21 +01:00
ui: clean up toasts and errors (#1872)
Co-authored-by: Alex Hancock <alexhancock@block.xyz>
This commit is contained in:
@@ -5,8 +5,7 @@ import { Input } from '../../ui/input';
|
||||
import { FullExtensionConfig } from '../../../extensions';
|
||||
import { getApiUrl, getSecretKey } from '../../../config';
|
||||
import { addExtension } from '../../../extensions';
|
||||
import { toast } from 'react-toastify';
|
||||
import { ToastError, ToastSuccess } from '../models/toasts';
|
||||
import { toastError, toastSuccess } from '../../../toasts';
|
||||
|
||||
interface ConfigureExtensionModalProps {
|
||||
isOpen: boolean;
|
||||
@@ -71,7 +70,7 @@ export function ConfigureExtensionModal({
|
||||
throw new Error('Failed to add system configuration');
|
||||
}
|
||||
|
||||
ToastSuccess({
|
||||
toastSuccess({
|
||||
title: extension.name,
|
||||
msg: `Successfully configured extension`,
|
||||
});
|
||||
@@ -79,7 +78,7 @@ export function ConfigureExtensionModal({
|
||||
onClose();
|
||||
} catch (error) {
|
||||
console.error('Error configuring extension:', error);
|
||||
ToastError({
|
||||
toastError({
|
||||
title: extension.name,
|
||||
msg: `Failed to configure extension`,
|
||||
traceback: error.message,
|
||||
|
||||
Reference in New Issue
Block a user