- {metaImage && typeof metaImage !== 'string' && (
+ {heroImage && typeof heroImage !== 'string' && (
)}
diff --git a/templates/website/src/payload-types.ts b/templates/website/src/payload-types.ts
index 6b89ddfc76c..10cee117c1d 100644
--- a/templates/website/src/payload-types.ts
+++ b/templates/website/src/payload-types.ts
@@ -376,6 +376,7 @@ export interface Category {
export interface Post {
id: string;
title: string;
+ heroImage?: (string | null) | Media;
content: {
root: {
type: string;
@@ -899,6 +900,7 @@ export interface PagesSelect
{
*/
export interface PostsSelect {
title?: T;
+ heroImage?: T;
content?: T;
relatedPosts?: T;
categories?: T;
diff --git a/templates/website/src/providers/Theme/types.ts b/templates/website/src/providers/Theme/types.ts
index 4ea0a5259c9..c39b9b3e79c 100644
--- a/templates/website/src/providers/Theme/types.ts
+++ b/templates/website/src/providers/Theme/types.ts
@@ -1,7 +1,7 @@
export type Theme = 'dark' | 'light'
export interface ThemeContextType {
- setTheme: (theme: Theme | null) => void // eslint-disable-line no-unused-vars
+ setTheme: (theme: Theme | null) => void
theme?: Theme | null
}