feat: make author clickable
This commit is contained in:
@@ -14,6 +14,7 @@ export type Movie = {
|
||||
date: Date;
|
||||
image: string;
|
||||
thumbnail?: string;
|
||||
average?: string;
|
||||
author: string;
|
||||
rating: number;
|
||||
status: "not-seen" | "watch-again" | "finished";
|
||||
@@ -99,12 +100,10 @@ export function parseMovie(original: string, id: string): Movie {
|
||||
const crud = createCrud<Movie>({
|
||||
prefix: "Media/movies/",
|
||||
parse: parseMovie,
|
||||
render: renderMovie,
|
||||
hasThumbnails: true,
|
||||
});
|
||||
|
||||
export const getMovie = crud.read;
|
||||
export const getAllMovies = crud.readAll;
|
||||
export const createMovie = (movie: Movie) => {
|
||||
const content = renderMovie(movie);
|
||||
return crud.create(movie.id, content);
|
||||
};
|
||||
export const createMovie = crud.create;
|
||||
|
||||
Reference in New Issue
Block a user