MCPcopy Create free account
hub / github.com/code100x/cms / handleClick

Function handleClick

src/components/Courses.tsx:15–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13 const session = useSession();
14
15 const handleClick = async () => {
16 // @ts-ignore
17 const res = await refreshDb({ userId: session.data.user.id });
18 if (res.error) {
19 toast.error(res.message);
20 } else {
21 toast.info(res.message);
22 }
23 };
24 const router = useRouter();
25 return (
26 <section className="grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3">

Callers

nothing calls this directly

Calls 1

refreshDbFunction · 0.90

Tested by

no test coverage detected