diff --git a/.vscode/settings.json b/.vscode/settings.json
index ea94cecd..4a786c5d 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -8,6 +8,7 @@
"Astia",
"authjs",
"camelcase",
+ "CLAR",
"cloudflarestorage",
"cmdk",
"Consolas",
diff --git a/app/admin/recipes/[recipe]/edit/page.tsx b/app/admin/recipes/[recipe]/edit/page.tsx
index c9db0fbd..9565cc55 100644
--- a/app/admin/recipes/[recipe]/edit/page.tsx
+++ b/app/admin/recipes/[recipe]/edit/page.tsx
@@ -45,7 +45,7 @@ export default async function RecipePageEdit({
accessory={recipeData && film &&
}
diff --git a/src/admin/AdminShowRecipeButton.tsx b/src/admin/AdminShowRecipeButton.tsx
index bfe97689..80fd1ca8 100644
--- a/src/admin/AdminShowRecipeButton.tsx
+++ b/src/admin/AdminShowRecipeButton.tsx
@@ -1,20 +1,11 @@
'use client';
import LoaderButton from '@/components/primitives/LoaderButton';
-import { FujifilmRecipe } from '@/platforms/fujifilm/recipe';
-import { FujifilmSimulation } from '@/platforms/fujifilm/simulation';
+import { RecipeProps } from '@/recipe';
import { useAppState } from '@/state/AppState';
import { TbChecklist } from 'react-icons/tb';
-export default function AdminShowRecipeButton({
- title,
- recipe,
- film,
-}: {
- title: string
- recipe: FujifilmRecipe
- film: FujifilmSimulation
-}) {
+export default function AdminShowRecipeButton(props: RecipeProps) {
const { setRecipeModalProps } = useAppState();
return (
@@ -23,11 +14,7 @@ export default function AdminShowRecipeButton({
size={17}
className="translate-y-[1px]"
/>}
- onClick={() => setRecipeModalProps?.({
- title,
- recipe,
- film,
- })}
+ onClick={() => setRecipeModalProps?.(props)}
>
Preview
diff --git a/src/image-response/RecipeImageResponse.tsx b/src/image-response/RecipeImageResponse.tsx
index a2af4863..ba311a67 100644
--- a/src/image-response/RecipeImageResponse.tsx
+++ b/src/image-response/RecipeImageResponse.tsx
@@ -34,7 +34,7 @@ export default function RecipeImageResponse({
let recipeLines = recipeData && film
? generateRecipeText({
- recipe: recipeData,
+ data: recipeData,
film,
}, true)
: [];
diff --git a/src/photo/PhotoLarge.tsx b/src/photo/PhotoLarge.tsx
index 61a5f9e3..74ca9b53 100644
--- a/src/photo/PhotoLarge.tsx
+++ b/src/photo/PhotoLarge.tsx
@@ -229,7 +229,7 @@ export default function PhotoLarge({