simplificando app
This commit is contained in:
@@ -2,12 +2,8 @@
|
||||
|
||||
import { useEffect, useState } from "react";
|
||||
import type { CardType } from "@/lib/cards";
|
||||
import { HistoricalAccuracyView } from "./HistoricalAccuracy";
|
||||
import { InternationalRatingsView } from "./InternationalRatings";
|
||||
import { ProductionFactsView } from "./ProductionFacts";
|
||||
import { RatingExplainedView } from "./RatingExplained";
|
||||
import { SensitivityGuideView } from "./SensitivityGuide";
|
||||
import { SkipGuideView } from "./SkipGuide";
|
||||
|
||||
interface CardContentProps {
|
||||
movieId: number;
|
||||
@@ -99,17 +95,9 @@ export function CardContent({ movieId, cardType }: CardContentProps) {
|
||||
switch (cardType) {
|
||||
case "rating_explained":
|
||||
return <RatingExplainedView data={data} />;
|
||||
case "skip_guide":
|
||||
return <SkipGuideView data={data} />;
|
||||
case "sensitivity_guide":
|
||||
return <SensitivityGuideView data={data} />;
|
||||
case "international_ratings":
|
||||
return <InternationalRatingsView data={data} />;
|
||||
case "production_facts":
|
||||
return <ProductionFactsView data={data} />;
|
||||
case "historical_accuracy":
|
||||
return <HistoricalAccuracyView data={data} />;
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user