File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -12,12 +12,12 @@ $ yarn add payload-workflow
1212
1313## Basic usage
1414``` typescript
15- import { PayloadWorkflow } from ' payload-workflow' ;
15+ import { payloadWorkflow } from ' payload-workflow' ;
1616
1717const config = buildConfig ({
1818 collections: [... ],
1919 plugins: [
20- PayloadWorkflow ({
20+ payloadWorkflow ({
2121 ' my-collection-slug' : {
2222 statuses: [
2323 {value: ' draft' , label: ' Draft' },
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import Posts from './collections/Posts';
55import Tags from './collections/Tags' ;
66import Users from './collections/Users' ;
77import Media from './collections/Media' ;
8- import { PayloadWorkflow } from "../../src/index" ;
8+ import { payloadWorkflow } from "../../src/index" ;
99
1010export default buildConfig ( {
1111 serverURL : 'http://localhost:3000' ,
@@ -33,7 +33,7 @@ export default buildConfig({
3333 Media ,
3434 ] ,
3535 plugins : [
36- PayloadWorkflow ( {
36+ payloadWorkflow ( {
3737 [ Posts . slug ] : {
3838 statuses : [
3939 { value : 'draft' , label : 'Draft' } ,
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ const extendCollectionConfig = (
6464 }
6565} ) ;
6666
67- export const PayloadWorkflow = ( pluginConfig : Record < string , PluginCollectionConfig > ) : Plugin =>
67+ export const payloadWorkflow = ( pluginConfig : Record < string , PluginCollectionConfig > ) : Plugin =>
6868 ( incomingConfig : Config ) : Config => {
6969
7070 return {
You can’t perform that action at this time.
0 commit comments