Files
payload/test/admin/components/views/CustomDashboard/index.tsx
Jacob Fletcher 3668f053b3 chore!: consolidates admin routes and views configs (#3458)
BREAKING CHANGE: If your config has a `admin.components.routes` array, you will need to key them into the `admin.components.views` object. The configuration options should remain unchanged.
2023-10-08 16:08:13 -04:00

28 lines
678 B
TypeScript

import React, { Fragment } from 'react'
import { AdminViewComponent } from '../../../../../packages/payload/src/config/types'
const CustomDashboardView: AdminViewComponent = () => {
return (
<Fragment>
<div
style={{
marginTop: 'calc(var(--base) * 2)',
paddingLeft: 'var(--gutter-h)',
paddingRight: 'var(--gutter-h)',
}}
>
<h1>Custom Dashboard View</h1>
<p>This custom view was added through the Payload config:</p>
<ul>
<li>
<code>components.views.Dashboard</code>
</li>
</ul>
</div>
</Fragment>
)
}
export default CustomDashboardView