Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix!: proper casing for default root views #9248

Merged
merged 1 commit into from
Nov 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/next/src/views/Account/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export const Account: React.FC<AdminViewProps> = async ({
/>
<HydrateAuthProvider permissions={permissions} />
<RenderServerComponent
Component={config.admin?.components?.views?.Account?.Component}
Component={config.admin?.components?.views?.account?.Component}
Fallback={EditView}
importMap={payload.importMap}
serverProps={{
Expand Down
2 changes: 1 addition & 1 deletion packages/next/src/views/Dashboard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export const Dashboard: React.FC<AdminViewProps> = async ({
Link,
locale,
}}
Component={config.admin?.components?.views?.Dashboard?.Component}
Component={config.admin?.components?.views?.dashboard?.Component}
Fallback={DefaultDashboard}
importMap={payload.importMap}
serverProps={{
Expand Down
4 changes: 2 additions & 2 deletions packages/payload/src/config/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -764,9 +764,9 @@ export type Config = {
/** Add custom admin views */
[key: string]: AdminViewConfig
/** Replace the account screen */
Account?: AdminViewConfig
account?: AdminViewConfig
/** Replace the admin homepage */
Dashboard?: AdminViewConfig
dashboard?: AdminViewConfig
}
}
/** Extension point to add your custom data. Available in server and client. */
Expand Down
Loading