PluginProbe
Code Block Pro – Beautiful Syntax Highlighting / 1.13.0
Code Block Pro – Beautiful Syntax Highlighting v1.13.0
1.27.1 1.27.2 1.27.3 1.27.4 1.27.5 1.27.6 1.27.7 1.28.0 1.3.0 1.4.0 1.5.0 1.5.1 1.5.2 1.6.0 1.7.0 1.8.0 1.9.0 1.9.1 1.9.2 1.9.3 trunk 1.1.0 1.10.0 1.11.0 1.11.1 All 63 releases
← All changes | src/editor/components/FooterSelect.tsx +4 -3 1.27.31.13.0 View file →
@@ -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 }