Skip to content

Commit f70c6fe

Browse files
authored
fix(templates): wrong link in demo content (custom components) (#13024)
### What? The "custom component" link in the dashboard of the website demo is wrong: ![image](https://github.com/user-attachments/assets/ee716a87-c515-4561-932d-f1c1fcccfd5e)
1 parent e6b6642 commit f70c6fe

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

examples/localization/src/payload.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export default buildConfig({
5353
admin: {
5454
components: {
5555
// The `BeforeLogin` component renders a message that you see while logging into your admin panel.
56-
// Feel free to delete this at any time. Simply remove the line below and the import `BeforeLogin` statement on line 15.
56+
// Feel free to delete this at any time. Simply remove the line below.
5757
beforeLogin: ['@/components/BeforeLogin'],
5858
afterDashboard: ['@/components/AfterDashboard'],
5959
},

templates/website/src/components/BeforeDashboard/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const BeforeDashboard: React.FC = () => {
6060
</ul>
6161
{'Pro Tip: This block is a '}
6262
<a
63-
href="https://payloadcms.com/docs/admin/custom-components/overview#base-component-overrides"
63+
href="https://payloadcms.com/docs/custom-components/overview"
6464
rel="noopener noreferrer"
6565
target="_blank"
6666
>

templates/website/src/payload.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ export default buildConfig({
2424
admin: {
2525
components: {
2626
// The `BeforeLogin` component renders a message that you see while logging into your admin panel.
27-
// Feel free to delete this at any time. Simply remove the line below and the import `BeforeLogin` statement on line 15.
27+
// Feel free to delete this at any time. Simply remove the line below.
2828
beforeLogin: ['@/components/BeforeLogin'],
2929
// The `BeforeDashboard` component renders the 'welcome' block that you see after logging into your admin panel.
30-
// Feel free to delete this at any time. Simply remove the line below and the import `BeforeDashboard` statement on line 15.
30+
// Feel free to delete this at any time. Simply remove the line below.
3131
beforeDashboard: ['@/components/BeforeDashboard'],
3232
},
3333
importMap: {

templates/with-vercel-website/src/components/BeforeDashboard/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const BeforeDashboard: React.FC = () => {
6060
</ul>
6161
{'Pro Tip: This block is a '}
6262
<a
63-
href="https://payloadcms.com/docs/admin/custom-components/overview#base-component-overrides"
63+
href="https://payloadcms.com/docs/custom-components/overview"
6464
rel="noopener noreferrer"
6565
target="_blank"
6666
>

templates/with-vercel-website/src/payload.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ export default buildConfig({
2424
admin: {
2525
components: {
2626
// The `BeforeLogin` component renders a message that you see while logging into your admin panel.
27-
// Feel free to delete this at any time. Simply remove the line below and the import `BeforeLogin` statement on line 15.
27+
// Feel free to delete this at any time. Simply remove the line below.
2828
beforeLogin: ['@/components/BeforeLogin'],
2929
// The `BeforeDashboard` component renders the 'welcome' block that you see after logging into your admin panel.
30-
// Feel free to delete this at any time. Simply remove the line below and the import `BeforeDashboard` statement on line 15.
30+
// Feel free to delete this at any time. Simply remove the line below.
3131
beforeDashboard: ['@/components/BeforeDashboard'],
3232
},
3333
importMap: {

0 commit comments

Comments
 (0)