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

Conversation

jacobsfletch
Copy link
Member

@jacobsfletch jacobsfletch commented Nov 16, 2024

Custom account and dashboard views now defined as lowercase in the config. This is to maintain consistency with all other custom views throughout the config. The underlying reason for this change is that previously, you could define React Components directly on these properties. Now, these are strictly view configuration objects, and the property names have been adjusted in order to semantically reflect that. These two views in particular, however, were never updated accordingly.

Breaking Changes

import { buildConfig } from 'payload'

const config = buildConfig({
  // ...
  admin: {
    components: {
      // ...
      views: {
        // ...
-       Account: ...
-       Dashboard: ...
+       account: ...
+       dashboard: ...
      },
    },
  },
})

@jacobsfletch jacobsfletch merged commit ed21c1c into beta Nov 16, 2024
59 checks passed
@jacobsfletch jacobsfletch deleted the fix/custom-root-view-keys branch November 16, 2024 19:35
Copy link

🚀 This is included in version v3.0.0-beta.134

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant