feat/recommendation #10
@ -5,6 +5,13 @@ import nextTs from "eslint-config-next/typescript";
|
|||||||
const eslintConfig = defineConfig([
|
const eslintConfig = defineConfig([
|
||||||
...nextVitals,
|
...nextVitals,
|
||||||
...nextTs,
|
...nextTs,
|
||||||
|
{
|
||||||
|
rules: {
|
||||||
|
// Disable the rule that enforces the use of `next/image` for image optimization.
|
||||||
|
"@next/next/no-img-element": "off",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
// Override default ignores of eslint-config-next.
|
// Override default ignores of eslint-config-next.
|
||||||
globalIgnores([
|
globalIgnores([
|
||||||
// Default ignores of eslint-config-next:
|
// Default ignores of eslint-config-next:
|
||||||
|
|||||||
@ -4,7 +4,6 @@ import { useRef } from "react";
|
|||||||
import { RecommendationAnime } from "../../actions/getRecommenationAnime";
|
import { RecommendationAnime } from "../../actions/getRecommenationAnime";
|
||||||
import AnimeRecommendationCard from "./components/Card";
|
import AnimeRecommendationCard from "./components/Card";
|
||||||
import ScrollingButton from "./components/ScrollingButton";
|
import ScrollingButton from "./components/ScrollingButton";
|
||||||
import { Skeleton } from "@/shared/libs/shadcn/ui/skeleton";
|
|
||||||
|
|
||||||
const RecommendationClient = ({
|
const RecommendationClient = ({
|
||||||
result,
|
result,
|
||||||
|
|||||||
@ -6,7 +6,7 @@ const RecommendationSkeleton = () => {
|
|||||||
return (
|
return (
|
||||||
<div className="flex gap-2 w-full overflow-hidden mt-4">
|
<div className="flex gap-2 w-full overflow-hidden mt-4">
|
||||||
{[...Array(skeletonLenght)].map((_, index) => (
|
{[...Array(skeletonLenght)].map((_, index) => (
|
||||||
<div tabIndex={index}>
|
<div key={index}>
|
||||||
<Skeleton className="h-88 w-64" />
|
<Skeleton className="h-88 w-64" />
|
||||||
<Skeleton className="mt-3 h-6 w-64 rounded-full" />
|
<Skeleton className="mt-3 h-6 w-64 rounded-full" />
|
||||||
<Skeleton className="mt-1 h-4 w-12 rounded-full" />
|
<Skeleton className="mt-1 h-4 w-12 rounded-full" />
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
import { Suspense } from "react";
|
import { Suspense } from "react";
|
||||||
import RecommendationMain from "./main";
|
import RecommendationMain from "./main";
|
||||||
import RecommendationSkeleton from "./skeleton";
|
import RecommendationSkeleton from "./skeleton";
|
||||||
import ScrollingButton from "./components/ScrollingButton";
|
|
||||||
|
|
||||||
const Recommendation = async () => {
|
const Recommendation = async () => {
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user