Skip to content

Commit

Permalink
requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
spearec committed Jun 26, 2023
1 parent af2cfac commit 9969794
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 0 additions & 2 deletions src/client/app/actions/admin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ function markPreferencesSubmitted(defaultMeterReadingFrequency: string): t.MarkP
return { type: ActionType.MarkPreferencesSubmitted, defaultMeterReadingFrequency };
}

/* eslint-enable */

/**
* Dispatches a fetch for admin preferences and sets the state based upon the result
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ function mapStateToProps(state: State) {
return props;
}

/* eslint-enable */
/**
* use a transparent heatmap to capture which point the user clicked on the map
* @param imageDimensions Normalized dimensions of the image
Expand Down
4 changes: 2 additions & 2 deletions src/client/app/utils/api/ReadingsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default class ReadingsApi {
* @param timeInterval The range of time to get readings for
* @param barWidthDays The width of the bar in days
* @param unitID The unit id that the reading should be returned in, i.e., the graphic unit
* @returns LineReadings in sorted order
* @returns BarReadings in sorted order
*/
public async meterBarReadings(meterIDs: number[], timeInterval: TimeInterval, barWidthDays: number, unitID: number): Promise<BarReadings> {
const stringifiedIDs = meterIDs.join(',');
Expand All @@ -76,7 +76,7 @@ export default class ReadingsApi {
* @param timeInterval The range of time to get readings for
* @param barWidthDays The width of the bar in days
* @param unitID The unit id that the reading should be returned in, i.e., the graphic unit
* @returns LineReadings in sorted order
* @returns BarReadings in sorted order
*/
public async groupBarReadings(groupIDs: number[], timeInterval: TimeInterval, barWidthDays: number, unitID: number): Promise<BarReadings> {
const stringifiedIDs = groupIDs.join(',');
Expand Down
4 changes: 2 additions & 2 deletions src/client/app/utils/calculateCompare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export interface ComparePeriodLabels {
/**
* Determines the human-readable names of a comparison period.
* @param comparePeriod the machine-readable name of the period
* @returns human-readable names for the compare period
* @returns human-readable names for the compare period as {{prev: string, current: string}}
*/
export function getComparePeriodLabels(comparePeriod: ComparePeriod): ComparePeriodLabels {
switch (comparePeriod) {
Expand All @@ -176,7 +176,7 @@ export function getComparePeriodLabels(comparePeriod: ComparePeriod): ComparePer
* Composes a label to summarize compare chart data.
* @param change the ratio of change between the current and previous period
* @param name the name of the entity being measured
* @param labels the names of the periods in question
* @param labels the names of the periods in question as {{prev: string, current: string}}
* @returns The label summary
*/
export function getCompareChangeSummary(change: number, name: string, labels: ComparePeriodLabels): string {
Expand Down

0 comments on commit 9969794

Please sign in to comment.