feat: catch all yaml parse errors

This commit is contained in:
2023-12-08 21:17:34 +01:00
parent 03d17569da
commit a350f58efc
7 changed files with 22 additions and 9 deletions

View File

@ -73,7 +73,7 @@ const Checkbox = (
const id = `checkbox-${_id}`;
return (
<label
className="flex items-center py-3 px-4 rounded-xl"
className="flex items-center py-3 px-4 rounded-2xl"
style={{ color: "var(--foreground)", background: "var(--background)" }}
>
<input

View File

@ -32,13 +32,13 @@ export const Rating = (
return (
<div
class="flex gap-2 px-5 rounded-2xl bg-gray-200 z-10"
class="flex items-center gap-2 px-5 rounded-2xl bg-gray-200 z-10"
style={{ color: "var(--foreground)", background: "var(--background)" }}
>
{Array.from({ length: max.value }).map((_, i) => {
return (
<span
class={`my-5 cursor-pointer opacity-${
class={`cursor-pointer opacity-${
(i + 1) <= rating ? 100 : (i + 1) <= hover ? 20 : 100
}`}
onMouseOver={() => setHover(i + 1)}

View File

@ -5,7 +5,7 @@ export const Star = (
) => {
return (
<div
class="flex gap-2 px-4 py-2 rounded-2xl bg-gray-200 z-10"
class="flex items-center gap-2 px-4 py-2 rounded-2xl bg-gray-200 z-10"
style={{ color: "#1F1F1F" }}
>
{Array.from({ length: max }).map((_, i) => {