refactor: commands from menu

This commit is contained in:
2023-08-04 13:48:12 +02:00
parent b95cfcc5b4
commit f9638c35fc
12 changed files with 317 additions and 114 deletions

View File

@@ -17,7 +17,7 @@ export default function Greet(props: PageProps<Movie>) {
const { author = "", date = "" } = movie.meta;
console.log(movie.description)
console.log(movie.description);
return (
<MainLayout url={props.url}>
@@ -35,7 +35,9 @@ export default function Greet(props: PageProps<Movie>) {
</>
)}
<div class="px-8 text-white mt-10">
{movie?.description?.length > 80 ? <h2 class="text-4xl font-bold mb-4">Review</h2>:<></>}
{movie?.description?.length > 80
? <h2 class="text-4xl font-bold mb-4">Review</h2>
: <></>}
<pre
class="whitespace-break-spaces"
dangerouslySetInnerHTML={{ __html: movie.description || "" }}