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 +11 -6 1.10.01.13.0 View file →
@@ -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 };