Skip to content

Commit

Permalink
Add Loader
Browse files Browse the repository at this point in the history
  • Loading branch information
woodnx committed May 15, 2023
1 parent dd9c5ed commit 7cb96ef
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/QuizCardList.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import QuizCard from "./QuizCard"
import { useEffect } from "react"
import useQuizzesStore from "../store/quiz"
import { Center, Loader } from "@mantine/core"
// import { useFetch } from "../hooks"

export default function QuizCardList() {
Expand All @@ -12,7 +13,11 @@ export default function QuizCardList() {
}, [])

if (!quizzes) {
return <div>loading</div>
return (
<Center>
<Loader/>
</Center>
)
}

return (
Expand Down

0 comments on commit 7cb96ef

Please sign in to comment.