MCPcopy Create free account
hub / github.com/GreatStackDev/gocart / fetchIsAdmin

Function fetchIsAdmin

components/admin/AdminLayout.jsx:14–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12 const [loading, setLoading] = useState(true)
13
14 const fetchIsAdmin = async () => {
15 setIsAdmin(true)
16 setLoading(false)
17 }
18
19 useEffect(() => {
20 fetchIsAdmin()

Callers 1

AdminLayoutFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected