MCPcopy Create free account
hub / github.com/EsperoTech/yaade / errorToast

Function errorToast

client/src/utils/index.tsx:56–64  ·  view source on GitHub ↗
(msg: string, toast: any, duration?: number, title?: string)

Source from the content-addressed store, hash-verified

54}
55
56function errorToast(msg: string, toast: any, duration?: number, title?: string) {
57 toast({
58 title: title ?? 'Error',
59 description: msg,
60 status: 'error',
61 isClosable: true,
62 duration: duration ?? 2000,
63 });
64}
65
66function beautifyBody(body: string, contentType: string): string {
67 if (contentType?.includes('application/json')) {

Callers 15

handleBeautifyClickFunction · 0.90
handleSaveCollectionFunction · 0.90
handleCreateEnvClickedFunction · 0.90
handleDeleteEnvClickedFunction · 0.90
handleSaveSecretClickedFunction · 0.90
CollectionsFunction · 0.90
handleSaveRequestClickFunction · 0.90
handleBeautifyClickFunction · 0.90
serverConnectFunction · 0.90
handleConnectFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected