Skip to content

Commit

Permalink
Jetpack Settings: Fix siteId in selector docs (#10319)
Browse files Browse the repository at this point in the history
  • Loading branch information
tyxla authored Jan 3, 2017
1 parent 2bc6d86 commit d5003f4
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
8 changes: 4 additions & 4 deletions client/state/jetpack-settings/connection/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { get } from 'lodash';
* Returns null if the site is unknown, or there is no information yet.
*
* @param {Object} state Global state tree
* @param {String} siteId The ID of the site we're querying
* @param {Number} siteId The ID of the site we're querying
* @return {?Boolean} Whether the connection status is being requested
*/
export function isRequestingJetpackConnectionStatus( state, siteId ) {
Expand All @@ -20,7 +20,7 @@ export function isRequestingJetpackConnectionStatus( state, siteId ) {
* Returns null if the site is unknown, or status hasn't been received yet.
*
* @param {Object} state Global state tree
* @param {String} siteId The ID of the site we're querying
* @param {Number} siteId The ID of the site we're querying
* @return {?Object} Details about connection status
*/
export function getJetpackConnectionStatus( state, siteId ) {
Expand All @@ -32,7 +32,7 @@ export function getJetpackConnectionStatus( state, siteId ) {
* Returns null if the site is unknown, or there is no information yet.
*
* @param {Object} state Global state tree
* @param {String} siteId The ID of the site we're querying
* @param {Number} siteId The ID of the site we're querying
* @return {?Boolean} Whether the site is in development mode.
*/
export function isJetpackSiteInDevelopmentMode( state, siteId ) {
Expand All @@ -44,7 +44,7 @@ export function isJetpackSiteInDevelopmentMode( state, siteId ) {
* Returns null if the site is unknown, or there is no information yet.
*
* @param {Object} state Global state tree
* @param {String} siteId The ID of the site we're querying
* @param {Number} siteId The ID of the site we're querying
* @return {?Boolean} Whether the site is in staging mode.
*/
export function isJetpackSiteInStagingMode( state, siteId ) {
Expand Down
8 changes: 4 additions & 4 deletions client/state/jetpack-settings/jumpstart/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { get } from 'lodash';
* Returns null if the site is unknown, or there is no information yet.
*
* @param {Object} state Global state tree
* @param {String} siteId The ID of the site we're querying
* @param {Number} siteId The ID of the site we're querying
* @return {?Boolean} Whether Jumpstart is currently being activated
*/
export function isActivatingJumpstart( state, siteId ) {
Expand All @@ -20,7 +20,7 @@ export function isActivatingJumpstart( state, siteId ) {
* Returns null if the site is unknown, or there is no information yet.
*
* @param {Object} state Global state tree
* @param {String} siteId The ID of the site we're querying
* @param {Number} siteId The ID of the site we're querying
* @return {?Boolean} Whether Jumpstart is currently being deactivated
*/
export function isDeactivatingJumpstart( state, siteId ) {
Expand All @@ -32,7 +32,7 @@ export function isDeactivatingJumpstart( state, siteId ) {
* Returns null if the site is unknown, or there is no information yet.
*
* @param {Object} state Global state tree
* @param {String} siteId The ID of the site we're querying
* @param {Number} siteId The ID of the site we're querying
* @return {?Boolean} Whether the Jumpstart status is being requested
*/
export function isRequestingJumpstartStatus( state, siteId ) {
Expand All @@ -44,7 +44,7 @@ export function isRequestingJumpstartStatus( state, siteId ) {
* Returns null if the site is unknown, or status hasn't been received yet.
*
* @param {Object} state Global state tree
* @param {String} siteId The ID of the site we're querying
* @param {Number} siteId The ID of the site we're querying
* @return {?String} Whether Jumpstart is active
*/
export function getJumpstartStatus( state, siteId ) {
Expand Down
8 changes: 4 additions & 4 deletions client/state/jetpack-settings/module-settings/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { get } from 'lodash';
* Returns null if the status for the queried site and module is unknown.
*
* @param {Object} state Global state tree
* @param {String} siteId The ID of the site we're querying
* @param {Number} siteId The ID of the site we're querying
* @param {String} moduleSlug Slug of the module
* @return {?Boolean} Whether module settings are currently being requested
*/
Expand All @@ -21,7 +21,7 @@ export function isRequestingModuleSettings( state, siteId, moduleSlug ) {
* Returns null if the status for the queried site and module is unknown.
*
* @param {Object} state Global state tree
* @param {String} siteId The ID of the site we're querying
* @param {Number} siteId The ID of the site we're querying
* @param {String} moduleSlug Slug of the module
* @return {?Boolean} Whether module settings are currently being updated
*/
Expand All @@ -34,7 +34,7 @@ export function isUpdatingModuleSettings( state, siteId, moduleSlug ) {
* Returns null if the site is unknown, or modules have not been fetched yet.
*
* @param {Object} state Global state tree
* @param {String} siteId The ID of the site we're querying
* @param {Number} siteId The ID of the site we're querying
* @return {?Object} Modules settings
*/
export function getModulesSettings( state, siteId ) {
Expand All @@ -46,7 +46,7 @@ export function getModulesSettings( state, siteId ) {
* Returns null if the site or module is unknown, or modules have not been fetched yet.
*
* @param {Object} state Global state tree
* @param {String} siteId The ID of the site we're querying
* @param {Number} siteId The ID of the site we're querying
* @param {String} moduleSlug Slug of the module
* @return {?Object} Module data
*/
Expand Down
12 changes: 6 additions & 6 deletions client/state/jetpack-settings/modules/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { get } from 'lodash';
* Returns null if the status for the queried site and module is unknown.
*
* @param {Object} state Global state tree
* @param {String} siteId The ID of the site we're querying
* @param {Number} siteId The ID of the site we're querying
* @param {String} moduleSlug Slug of the module
* @return {?Boolean} Whether the module is active
*/
Expand All @@ -21,7 +21,7 @@ export function isModuleActive( state, siteId, moduleSlug ) {
* Returns null if the status for the queried site and module is unknown.
*
* @param {Object} state Global state tree
* @param {String} siteId The ID of the site we're querying
* @param {Number} siteId The ID of the site we're querying
* @param {String} moduleSlug Slug of the module
* @return {?Boolean} Whether module is currently being activated
*/
Expand All @@ -34,7 +34,7 @@ export function isActivatingModule( state, siteId, moduleSlug ) {
* Returns null if the status for the queried site and module is unknown.
*
* @param {Object} state Global state tree
* @param {String} siteId The ID of the site we're querying
* @param {Number} siteId The ID of the site we're querying
* @param {String} moduleSlug Slug of the module
* @return {?Boolean} Whether module is currently being deactivated
*/
Expand All @@ -48,7 +48,7 @@ export function isDeactivatingModule( state, siteId, moduleSlug ) {
* Returns null if the status for queried site and module is unknown.
*
* @param {Object} state Global state tree
* @param {String} siteId The ID of the site we're querying
* @param {Number} siteId The ID of the site we're querying
* @return {?Boolean} Whether the list is being requested
*/
export function isFetchingModules( state, siteId ) {
Expand All @@ -60,7 +60,7 @@ export function isFetchingModules( state, siteId ) {
* Returns null if the site is unknown, or modules have not been fetched yet.
*
* @param {Object} state Global state tree
* @param {String} siteId The ID of the site we're querying
* @param {Number} siteId The ID of the site we're querying
* @return {?Object} Modules data
*/
export function getModules( state, siteId ) {
Expand All @@ -72,7 +72,7 @@ export function getModules( state, siteId ) {
* Returns null if the site or module is unknown, or modules have not been fetched yet.
*
* @param {Object} state Global state tree
* @param {String} siteId The ID of the site we're querying
* @param {Number} siteId The ID of the site we're querying
* @param {String} moduleSlug Slug of the module
* @return {?Object} Module data
*/
Expand Down

0 comments on commit d5003f4

Please sign in to comment.