MCPcopy Create free account
hub / github.com/TryCatchLearn/Overflow / successToast

Function successToast

webapp/src/lib/util.ts:18–24  ·  view source on GitHub ↗
(message: string, title?: string, )

Source from the content-addressed store, hash-verified

16}
17
18export function successToast(message: string, title?: string, ) {
19 return addToast({
20 color: 'success',
21 title: title || 'Success!',
22 description: message
23 })
24}
25
26export function handleError(error: {message: string, status: number}) {
27 if (error.status === 500) {

Callers 4

onSubmitFunction · 0.90
handleAddVoteFunction · 0.90
handleAcceptAnswerFunction · 0.90
onClickFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…