Skip to content

Commit 494f7f3

Browse files
committed
WordCamp Blocks: Pass props to super per React recommendation.
This doesn't have any tangible benefit, but is recommended by React's documentation. This partially reverts r8511. See #33 git-svn-id: https://meta.svn.wordpress.org/sites/trunk/wordcamp.org@8595 74240141-8908-4e6f-9713-ba540dce6ec7
1 parent 2809c1e commit 494f7f3

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

public_html/wp-content/mu-plugins/blocks/assets/src/sessions/edit.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const ALL_TERMS_QUERY = {
3737

3838
class SessionsEdit extends Component {
3939
constructor( props ) {
40-
super();
40+
super( props );
4141

4242
this.state = {
4343
allSessionPosts : null,

public_html/wp-content/mu-plugins/blocks/assets/src/sessions/sessions-select.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import ItemSelect from '../shared/item-select';
1818

1919
class SessionsSelect extends Component {
2020
constructor( props ) {
21-
super();
21+
super( props );
2222

2323
this.state = {
2424
wcb_session : [],

public_html/wp-content/mu-plugins/blocks/assets/src/shared/avatar-size/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const sizePresets = [
4545

4646
class AvatarSizeControl extends Component {
4747
constructor( props ) {
48-
super();
48+
super( props );
4949

5050
this.state = {
5151
value : props.value,

public_html/wp-content/mu-plugins/blocks/assets/src/shared/block-controls/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import './style.scss';
1717

1818
export class BlockControls extends Component {
1919
constructor( props ) {
20-
super();
20+
super( props );
2121

2222
this.getModeLabel = this.getModeLabel.bind( this );
2323
}

public_html/wp-content/mu-plugins/blocks/assets/src/shared/item-select/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import './style.scss';
1919

2020
class ItemSelect extends Component {
2121
constructor( props ) {
22-
super();
22+
super( props );
2323

2424
this.state = {
2525
selectedOptions: null,

public_html/wp-content/mu-plugins/blocks/assets/src/speakers/edit.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const ALL_TERMS_QUERY = {
3838

3939
class SpeakersEdit extends Component {
4040
constructor( props ) {
41-
super();
41+
super( props );
4242

4343
this.state = {
4444
allSpeakerPosts : null,

public_html/wp-content/mu-plugins/blocks/assets/src/speakers/speakers-select.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import ItemSelect from '../shared/item-select';
1919

2020
class SpeakersSelect extends Component {
2121
constructor( props ) {
22-
super();
22+
super( props );
2323

2424
this.state = {
2525
wcb_speaker : [],

public_html/wp-content/mu-plugins/blocks/assets/src/sponsors/block-content.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function SponsorDetail( { sponsorPost, attributes, onFeatureImageChange } ) {
7474
*/
7575
class SponsorBlockContent extends Component {
7676
constructor( props ) {
77-
super();
77+
super( props );
7878

7979
this.state = {
8080
selectedPosts : [],

public_html/wp-content/mu-plugins/blocks/assets/src/sponsors/edit.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class SponsorsEdit extends Component {
2323
* @param props
2424
*/
2525
constructor( props ) {
26-
super();
26+
super( props );
2727

2828
this.state = {};
2929
}

0 commit comments

Comments
 (0)