Skip to content

Commit

Permalink
Fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
EloToJaa committed Feb 23, 2024
1 parent 0efaf81 commit 5df74b8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/components/pages/QuizSearch/QuizSearch.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { QuizResponse } from "@/api/types/quiz";
import { paramsAtom, quizesAtom, updateParamsAtom } from "@/atoms/quizSearch";
import { useAtom } from "jotai";
import { useState } from "react";
import QuizTile from "../Home/TileGrid/QuizTile";
import Loading from "../Status/Loading";
import NotFound from "../Status/NotFound/NotFound";
import { useAtom } from "jotai";
import { paramsAtom, quizesAtom, updateParamsAtom } from "@/atoms/quizSearch";
import { QuizResponse } from "@/api/types/quiz";
import FiltersBar from "./FiltersBar";
import { useState } from "react";
import PagingBar from "./PagingBar";
import QuizTile from "../Home/TileGrid/QuizTile";

export default function QuizSearch() {
const [{ isLoading, isError, data }] = useAtom(quizesAtom);
Expand All @@ -32,7 +32,7 @@ export default function QuizSearch() {
<>
<div className="bg-primary flex items-center justify-center gap-20 p-20">
<FiltersBar input={input} setInput={setInput} />
<PagingBar quizes={data?.data} />
{data?.data && <PagingBar quizes={data?.data} />}
</div>

<div className="bg-primary flex-col gap-16 w-full flex items-center justify-center py-14 md:py-16 lg:py-20">
Expand Down

0 comments on commit 5df74b8

Please sign in to comment.