#51 removed warnings that come during compilation
Closed 2 years ago by lbrabec. Opened 2 years ago by mannika16161.
fedora-qa/ mannika16161/landingpage remove-warnings-during-compilation  into  master

file modified
+2 -1
@@ -1,6 +1,7 @@ 

- export default {

+ const data = {

      LOAD_DATA: 'LOAD_DATA',

      LOAD_DATA_RESP: 'LOAD_DATA_RESP',

      LOAD_WIZARD_DATA: 'LOAD_WIZARD_DATA',

      LOAD_WIZARD_DATA_RESP: 'LOAD_WIZARD_DATA_RESP',

  }

+ export default data; 

\ No newline at end of file

file modified
+3 -1
@@ -18,7 +18,7 @@ 

    },

  }

  

- export default (state = defaultState, action) => {

+ let setState = (state = defaultState, action) => {

    switch (action.type) {

      case ActionTypes.LOAD_DATA_RESP:

        return {
@@ -42,3 +42,5 @@ 

        }

    }

  }

+ 

+ export default setState; 

\ No newline at end of file

@@ -157,7 +157,7 @@ 

      }

  

      const testtype = extra_data.testtype

-     const tc_rawname = extra_data.display_name

+     // const tc_rawname = extra_data.display_name

  

      return (

        <ModalInfo buttonLabel={name}>

Removed the following warnings that come during compilation :
->src/constants/index.js
Line 1:1: Assign object to a variable before exporting as module default import/no-anonymous-default-export
-> src/reducers/index.js
Line 21:1: Assign arrow function to a variable before exporting as module default import/no-anonymous-default-export
src/wizard/FedoraManualTesting.js
Line 160:11: 'tc_rawname' is assigned a value but never used

Thanks for participating in contribution period of Outreachy. This pull-request has not been selected to be merged and will be closed for housecleaning purposes. We may revisit this pull-request later, but as of now we will focus on merging pull-requests from our accepted intern.

Pull-Request has been closed by lbrabec

2 years ago