Skip to content

Commit

Permalink
fix: deno error
Browse files Browse the repository at this point in the history
  • Loading branch information
ShivaBhattacharjee committed Jun 17, 2024
1 parent 4a779c4 commit e0e9766
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion public/sw.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion src/components/AniScanSearchLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import ServerError from "./error/ServerError";

import { AnimeApi } from "@/lib/animeapi/animetrixapi";
import Anime, { ApiResponse } from "@/types/animetypes";
import Toast from "@/utils/toast";

interface AniScanSearchLayoutProps {
searchResult: ApiResponse | null;
Expand All @@ -31,7 +32,8 @@ const AniScanSearchLayout: React.FC<AniScanSearchLayoutProps> = ({ searchResult
prevAnilist.current = searchResult?.result[number].anilist.id || null;
setLoading(false);
} catch (error) {
alert("Can't find image!");
console.log(error);
Toast.ErrorShowToast("Can't find image!");
setLoading(false);
}
};
Expand Down
2 changes: 1 addition & 1 deletion src/components/CommentSection.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"use client";
import React, { useContext, useEffect, useState } from "react";
import { useContext, useEffect, useState } from "react";
import InfiniteScroll from "react-infinite-scroll-component";
import { ClipLoader } from "react-spinners";
import axios from "axios";
Expand Down
2 changes: 1 addition & 1 deletion src/components/buttons/AddToBookmark.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import React, { useEffect, useState } from "react";
import { useEffect, useState } from "react";
import { BarLoader } from "react-spinners";
import axios from "axios";
import { getCookie } from "cookies-next";
Expand Down
2 changes: 1 addition & 1 deletion src/components/buttons/Logout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import React, { useContext } from "react";
import { useContext } from "react";
import { ClipLoader } from "react-spinners";
import Link from "next/link";

Expand Down
2 changes: 1 addition & 1 deletion src/components/error/ReloadFunc.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import React, { FC } from "react";
import { FC } from "react";

const ReloadFunc: FC<{ message: string }> = ({ message }) => {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/components/shared/airingschedule/AiringSchedule.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"use client";
import React, { useEffect, useState } from "react";
import { useEffect, useState } from "react";
import { AxiosError } from "axios"; // Import AxiosError type

import AiringScheduleCard from "./AiringScheduleCard";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// AiringScheduleCard.tsx

import React, { useEffect, useState } from "react";
import { useEffect, useState } from "react";
import { ArrowLeftToLine, ArrowRightToLine, PlayCircle } from "lucide-react";
import Link from "next/link";

Expand Down
1 change: 0 additions & 1 deletion src/utils/EmailTemplate/RegisterEmail.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import * as React from "react";
import { Body, Button, Container, Head, Heading, Html, Img, Link, Preview, Section, Tailwind, Text } from "@react-email/components";

type props = {
Expand Down

0 comments on commit e0e9766

Please sign in to comment.