Feature/rsvp block variation #2258
Annotations
10 errors and 2 warnings
Run JSHint:
src/blocks/modal/edit.js#L9
'Rsvp' is defined but never used
|
Run JSHint:
src/blocks/modal/edit.js#L11
'EditCover' is defined but never used
|
Run JSHint:
src/blocks/modal/edit.js#L27
'postId' is assigned a value but never used
|
Run JSHint:
src/blocks/modal/edit.js#L28
'currentUser' is assigned a value but never used
|
Run JSHint:
src/blocks/modal/edit.js#L29
'TEMPLATE' is assigned a value but never used
|
Run JSHint:
src/blocks/modal/edit.js#L30
Replace `'core/buttons',·{·align:·'center',·layout:·{·type:·'flex',·justifyContent:·'center'·}·},·[` with `⏎↹↹↹'core/buttons',⏎↹↹↹{⏎↹↹↹↹align:·'center',⏎↹↹↹↹layout:·{·type:·'flex',·justifyContent:·'center'·},⏎↹↹↹},`
|
Run JSHint:
src/blocks/modal/edit.js#L31
Replace `['core/button',·{·text:·'RSVP'·}]` with `[['core/button',·{·text:·'RSVP'·}]],`
|
Run JSHint:
src/blocks/modal/edit.js#L32
Replace `]` with `,`
|
Run JSHint:
src/blocks/modal/index.js#L33
Insert `,`
|
Run JSHint:
src/blocks/rsvp-v2/edit.js#L4
Replace `·InnerBlocks,·InspectorControls,·useBlockProps·` with `⏎↹InnerBlocks,⏎↹InspectorControls,⏎↹useBlockProps,⏎`
|
Run JSHint:
src/blocks/rsvp-v2/edit.js#L145
React Hook useEffect has missing dependencies: 'setAttributes' and 'status'. Either include them or remove the dependency array. If 'setAttributes' changes too often, find the parent component that defines it and wrap that definition in useCallback
|
Run JSHint:
src/blocks/rsvp-v2/edit.js#L183
React Hook useEffect has missing dependencies: 'attendingLabel', 'buttonBlock', 'noStatusLabel', 'notAttendingLabel', and 'waitingListLabel'. Either include them or remove the dependency array
|
Loading