Skip to content

Refactor code style #533

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Mar 11, 2018
Merged

Refactor code style #533

merged 8 commits into from
Mar 11, 2018

Conversation

itsmichaeldiego
Copy link
Member

This pr includes:

  • Fix some eslint styling
  • Update recompose to latest version
  • Use object destruction to import multiple child modules from one single module (recompose & lodash)

const BASE_URL = 'https://maps';
const DEFAULT_URL = `${BASE_URL}.googleapis.com`;
const API_PATH = '/maps/api/js?callback=_$_google_map_initialize_$_';
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

console.error(message);
throw new Error(message);
}
}

let queryString = Object.keys(bootstrapURLKeys).reduce(
let params = Object.keys(bootstrapURLKeys).reduce(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The word params makes more sense than queryString, as they're actually params

withContext,
withProps,
withPropsOnChange,
} from 'recompose';
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This way of importing things looks clearer

@lock
Copy link

lock bot commented Dec 1, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Dec 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant