format fix
This commit is contained in:
1 parent
f061457d7f
commit
d34a8474fc
35 files changed
+466
-294
No files matched your search
+24
-24
@@ -1,54 +1,54 @@
|
||||
import { lucideOptions } from "@/lib/lucid-options";
|
||||
import { revalidatePath } from "next/cache";
|
||||
import { GlobalConfig } from "payload";
|
||||
import { lucideOptions } from '@/lib/lucid-options'
|
||||
import { revalidatePath } from 'next/cache'
|
||||
import { GlobalConfig } from 'payload'
|
||||
|
||||
export const Home: GlobalConfig = {
|
||||
slug: "home",
|
||||
slug: 'home',
|
||||
access: {
|
||||
read: () => true,
|
||||
},
|
||||
fields: [
|
||||
{
|
||||
name: "mainLinks",
|
||||
type: "array",
|
||||
name: 'mainLinks',
|
||||
type: 'array',
|
||||
required: true,
|
||||
fields: [
|
||||
{
|
||||
name: "title",
|
||||
type: "text",
|
||||
name: 'title',
|
||||
type: 'text',
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
name: "url",
|
||||
type: "text",
|
||||
name: 'url',
|
||||
type: 'text',
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
name: "icon",
|
||||
type: "select",
|
||||
name: 'icon',
|
||||
type: 'select',
|
||||
options: lucideOptions,
|
||||
required: true,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "popoverLinks",
|
||||
type: "array",
|
||||
name: 'popoverLinks',
|
||||
type: 'array',
|
||||
required: true,
|
||||
fields: [
|
||||
{
|
||||
name: "title",
|
||||
type: "text",
|
||||
name: 'title',
|
||||
type: 'text',
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
name: "url",
|
||||
type: "text",
|
||||
name: 'url',
|
||||
type: 'text',
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
name: "icon",
|
||||
type: "select",
|
||||
name: 'icon',
|
||||
type: 'select',
|
||||
options: lucideOptions,
|
||||
required: true,
|
||||
},
|
||||
@@ -58,8 +58,8 @@ export const Home: GlobalConfig = {
|
||||
hooks: {
|
||||
afterChange: [
|
||||
async () => {
|
||||
revalidatePath("/");
|
||||
}
|
||||
revalidatePath('/')
|
||||
},
|
||||
],
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
Reference in new issue
Block a user