feat: replace tv show icon
This commit is contained in:
@ -9,8 +9,8 @@ import { KMenu } from "@islands/KMenu.tsx";
|
||||
|
||||
export const handler: Handlers<Series | null> = {
|
||||
async GET(_, ctx) {
|
||||
const movie = await getSeries(ctx.params.name);
|
||||
return ctx.render(movie);
|
||||
const series = await getSeries(ctx.params.name);
|
||||
return ctx.render(series);
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -3,10 +3,9 @@ import { MainLayout } from "@components/layouts/main.tsx";
|
||||
import { Grid } from "@components/Grid.tsx";
|
||||
import { IconArrowLeft } from "@components/icons.tsx";
|
||||
import { getAllSeries, Series } from "@lib/resource/series.ts";
|
||||
import { Card } from "@components/Card.tsx";
|
||||
import { RedirectSearchHandler } from "@islands/Search.tsx";
|
||||
import { KMenu } from "@islands/KMenu.tsx";
|
||||
import { SeriesCard } from "@components/MovieCard.tsx";
|
||||
import { MovieCard } from "@components/MovieCard.tsx";
|
||||
|
||||
export const handler: Handlers<Series[] | null> = {
|
||||
async GET(_, ctx) {
|
||||
@ -33,7 +32,7 @@ export default function Greet(props: PageProps<Series[] | null>) {
|
||||
</header>
|
||||
<Grid>
|
||||
{props.data?.map((doc) => {
|
||||
return <SeriesCard series={doc} />;
|
||||
return <MovieCard sublink="series" movie={doc} />;
|
||||
})}
|
||||
</Grid>
|
||||
</MainLayout>
|
||||
|
Reference in New Issue
Block a user