| @@ -31,10 +31,14 @@ | ||
| 31 | 31 | ) |
| 32 | 32 | : type |
| 33 | 33 | } |
| 34 | 34 | help={ |
| 35 | - ['simpleStringEnd', 'SimpleStringStart'].includes(slug) | |
| 36 | - ? __('Update text in Settings', 'code-block-pro') | |
| 35 | + ['simpleStringEnd', 'simpleStringStart'].includes(slug) | |
| 36 | + ? // Settings refers to the panel that can be expanded | |
| 37 | + __( | |
| 38 | + 'Update extras in the Settings panel', | |
| 39 | + 'code-block-pro', | |
| 40 | + ) | |
| 37 | 41 | : undefined |
| 38 | 42 | } |
| 39 | 43 | key={slug}> |
| 40 | 44 | <button |
| @@ -58,14 +62,15 @@ | ||
| 58 | 62 | </div> |
| 59 | 63 | ); |
| 60 | 64 | }; |
| 61 | 65 | |
| 62 | -export const FooterType = (attributes: Partial<Attributes>) => { | |
| 63 | - const { footerType } = attributes; | |
| 66 | +export const FooterType = (props: Partial<Attributes>) => { | |
| 67 | + const { footerType } = props; | |
| 64 | 68 | if (footerType === 'simpleStringEnd') { |
| 65 | - return <SimpleStringEnd {...attributes} />; | |
| 69 | + return <SimpleStringEnd {...props} />; | |
| 66 | 70 | } |
| 67 | 71 | if (footerType === 'simpleStringStart') { |
| 68 | - return <SimpleStringStart {...attributes} />; | |
| 72 | + return <SimpleStringStart {...props} />; | |
| 69 | 73 | } |
| 74 | + | |
| 70 | 75 | return null; |
| 71 | 76 | }; |