| @@ -8,9 +8,10 @@ | ||
| 8 | 8 | attributes: Attributes; |
| 9 | 9 | onClick: (slug: string) => void; |
| 10 | 10 | }; |
| 11 | 11 | export const FooterSelect = ({ attributes, onClick }: FooterSelectProps) => { |
| 12 | - const { footerType, ...attributesWithoutFooterType } = attributes; | |
| 12 | + const { footerType, ...attributesWithoutFooterType }: Partial<Attributes> = | |
| 13 | + attributes; | |
| 13 | 14 | const { bgColor } = attributes; |
| 14 | 15 | const types = { |
| 15 | 16 | none: __('None', 'code-block-pro'), |
| 16 | 17 | simpleStringEnd: __('Simple string end', 'code-block-pro'), |
| @@ -33,9 +34,9 @@ | ||
| 33 | 34 | help={ |
| 34 | 35 | ['simpleStringEnd', 'simpleStringStart'].includes(slug) |
| 35 | 36 | ? // Settings refers to the panel that can be expanded |
| 36 | 37 | __( |
| 37 | - 'Set the text at the top of this panel.', | |
| 38 | + 'Update extras in the Settings panel', | |
| 38 | 39 | 'code-block-pro', |
| 39 | 40 | ) |
| 40 | 41 | : undefined |
| 41 | 42 | } |
| @@ -61,9 +62,9 @@ | ||
| 61 | 62 | </div> |
| 62 | 63 | ); |
| 63 | 64 | }; |
| 64 | 65 | |
| 65 | -export const FooterType = (props: Attributes) => { | |
| 66 | +export const FooterType = (props: Partial<Attributes>) => { | |
| 66 | 67 | const { footerType } = props; |
| 67 | 68 | if (footerType === 'simpleStringEnd') { |
| 68 | 69 | return <SimpleStringEnd {...props} />; |
| 69 | 70 | } |