-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automated bump of templates for v3.4.0 Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
28c6b2a
commit d3232b9
Showing
22 changed files
with
155 additions
and
78 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...c/migrations/20241205_040211_initial.json → ...c/migrations/20241205_211431_initial.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import * as migration_20241205_040211_initial from './20241205_040211_initial' | ||
import * as migration_20241205_211431_initial from './20241205_211431_initial' | ||
|
||
export const migrations = [ | ||
{ | ||
up: migration_20241205_040211_initial.up, | ||
down: migration_20241205_040211_initial.down, | ||
name: '20241205_040211_initial', | ||
up: migration_20241205_211431_initial.up, | ||
down: migration_20241205_211431_initial.down, | ||
name: '20241205_211431_initial', | ||
}, | ||
] |
2 changes: 1 addition & 1 deletion
2
...c/migrations/20241205_040146_initial.json → ...c/migrations/20241205_211405_initial.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import * as migration_20241205_040146_initial from './20241205_040146_initial' | ||
import * as migration_20241205_211405_initial from './20241205_211405_initial' | ||
|
||
export const migrations = [ | ||
{ | ||
up: migration_20241205_040146_initial.up, | ||
down: migration_20241205_040146_initial.down, | ||
name: '20241205_040146_initial', | ||
up: migration_20241205_211405_initial.up, | ||
down: migration_20241205_211405_initial.down, | ||
name: '20241205_211405_initial', | ||
}, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
'use client' | ||
import { Header } from '@/payload-types' | ||
import { RowLabelProps, useRowLabel } from '@payloadcms/ui' | ||
|
||
export const RowLabel: React.FC<RowLabelProps> = (props) => { | ||
const data = useRowLabel<NonNullable<Header['navItems']>[number]>() | ||
|
||
const label = data?.data?.link?.label | ||
? `Nav item ${data.rowNumber !== undefined ? data.rowNumber + 1 : ''}: ${data?.data?.link?.label}` | ||
: 'Row' | ||
|
||
return <div>{label}</div> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
'use client' | ||
import { Header } from '@/payload-types' | ||
import { RowLabelProps, useRowLabel } from '@payloadcms/ui' | ||
|
||
export const RowLabel: React.FC<RowLabelProps> = (props) => { | ||
const data = useRowLabel<NonNullable<Header['navItems']>[number]>() | ||
|
||
const label = data?.data?.link?.label | ||
? `Nav item ${data.rowNumber !== undefined ? data.rowNumber + 1 : ''}: ${data?.data?.link?.label}` | ||
: 'Row' | ||
|
||
return <div>{label}</div> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...c/migrations/20241205_040201_initial.json → ...c/migrations/20241205_211421_initial.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import * as migration_20241205_040201_initial from './20241205_040201_initial' | ||
import * as migration_20241205_211421_initial from './20241205_211421_initial' | ||
|
||
export const migrations = [ | ||
{ | ||
up: migration_20241205_040201_initial.up, | ||
down: migration_20241205_040201_initial.down, | ||
name: '20241205_040201_initial', | ||
up: migration_20241205_211421_initial.up, | ||
down: migration_20241205_211421_initial.down, | ||
name: '20241205_211421_initial', | ||
}, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters