Skip to content

Commit

Permalink
fix import formatting in ActiveTaskControls.jsx (#2533)
Browse files Browse the repository at this point in the history
* fix import formatting in ActiveTaskControls.jsx

* fix more formatting issues

* fix remaining format errors
  • Loading branch information
CollinBeczak authored Feb 5, 2025
1 parent 4148ce3 commit 2645ee4
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import classNames from "classnames";
import _cloneDeep from "lodash/cloneDeep";
import _get from "lodash/get";
import _isEmpty from "lodash/isEmpty";
import _isFinite from "lodash/isFinite";
import _isObject from "lodash/isObject";
Expand All @@ -12,35 +11,35 @@ import PropTypes from "prop-types";
import { Component, Fragment } from "react";
import { FormattedMessage, injectIntl } from "react-intl";
import { Link } from "react-router-dom";
import { replacePropertyTags } from "../../../../hooks/UsePropertyReplacement/UsePropertyReplacement";
import AsCooperativeWork from "../../../../interactions/Task/AsCooperativeWork";
import { Editor } from "../../../../services/Editor/Editor";
import { OPEN_STREET_MAP } from "../../../../services/VisibleLayer/LayerSources";
import { TaskReviewLoadMethod } from "../../../../services/Task/TaskReview/TaskReviewLoadMethod";
import { TaskReviewStatus } from "../../../../services/Task/TaskReview/TaskReviewStatus";
import { TaskStatus } from "../../../../services/Task/TaskStatus/TaskStatus";
import { TASK_STATUS_FIXED } from "../../../../services/Task/TaskStatus/TaskStatus";
import {
allowedStatusProgressions,
isCompletionStatus,
isFinalStatus,
messagesByStatus,
allowedStatusProgressions,
isCompletionStatus,
isFinalStatus,
messagesByStatus,
} from "../../../../services/Task/TaskStatus/TaskStatus";
import CooperativeWorkControls from "./CooperativeWorkControls/CooperativeWorkControls";
import messages from "./Messages";
import SignInButton from "../../../SignInButton/SignInButton";
import TaskCompletionStep from "./TaskCompletionStep/TaskCompletionStep";
import TaskConfirmationModal from "../../../TaskConfirmationModal/TaskConfirmationModal";
import TaskNextControl from "./TaskNextControl/TaskNextControl";
import TaskTags from "../../../TaskTags/TaskTags";
import { OPEN_STREET_MAP } from "../../../../services/VisibleLayer/LayerSources";
import { constructChangesetUrl } from "../../../../utils/constructChangesetUrl";
import WithChallengePreferences from "../../../HOCs/WithChallengePreferences/WithChallengePreferences";
import WithKeyboardShortcuts from "../../../HOCs/WithKeyboardShortcuts/WithKeyboardShortcuts";
import WithSearch from "../../../HOCs/WithSearch/WithSearch";
import WithTaskFeatureProperties from "../../../HOCs/WithTaskFeatureProperties/WithTaskFeatureProperties";
import WithTaskReview from "../../../HOCs/WithTaskReview/WithTaskReview";
import WithTaskTags from "../../../HOCs/WithTaskTags/WithTaskTags";
import WithVisibleLayer from "../../../HOCs/WithVisibleLayer/WithVisibleLayer";
import { constructChangesetUrl } from "../../../../utils/constructChangesetUrl";
import { replacePropertyTags } from "../../../../hooks/UsePropertyReplacement/UsePropertyReplacement";
import SignInButton from "../../../SignInButton/SignInButton";
import TaskConfirmationModal from "../../../TaskConfirmationModal/TaskConfirmationModal";
import TaskTags from "../../../TaskTags/TaskTags";
import CooperativeWorkControls from "./CooperativeWorkControls/CooperativeWorkControls";
import messages from "./Messages";
import TaskCompletionStep from "./TaskCompletionStep/TaskCompletionStep";
import TaskNextControl from "./TaskNextControl/TaskNextControl";
import "./ActiveTaskControls.scss";

const hiddenShortcutGroup = "taskCompletion";
Expand Down Expand Up @@ -191,7 +190,9 @@ export class ActiveTaskControls extends Component {
if (taskStatus === TASK_STATUS_FIXED && disableTaskConfirm) {
this.setState(
{
osmComment: `${this.props.task.parent.checkinComment}${constructChangesetUrl(this.props.task)}`,
osmComment: `${
this.props.task.parent.checkinComment
}${constructChangesetUrl(this.props.task)}`,
confirmingStatus: taskStatus,
submitRevision,
},
Expand All @@ -202,7 +203,9 @@ export class ActiveTaskControls extends Component {
} else {
this.setState({
confirmingTask: this.props.task,
osmComment: `${this.props.task.parent.checkinComment}${constructChangesetUrl(this.props.task)}`,
osmComment: `${
this.props.task.parent.checkinComment
}${constructChangesetUrl(this.props.task)}`,
confirmingStatus: taskStatus,
submitRevision,
});
Expand Down Expand Up @@ -376,7 +379,9 @@ export class ActiveTaskControls extends Component {
if (!this.props.user?.isLoggedIn) {
return (
<div
className={classNames("active-task-controls", { "is-minimized": this.props.isMinimized })}
className={classNames("active-task-controls", {
"is-minimized": this.props.isMinimized,
})}
>
<div className="has-centered-children">
<SignInButton className="active-task-controls--signin" {...this.props} />
Expand Down
1 change: 0 additions & 1 deletion src/services/Challenge/Challenge.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import _clone from "lodash/clone";
import _cloneDeep from "lodash/cloneDeep";
import _compact from "lodash/compact";
import _each from "lodash/each";
import _get from "lodash/get";
import _flatten from "lodash/flatten";
import _fromPairs from "lodash/fromPairs";
import _groupBy from "lodash/groupBy";
Expand Down

0 comments on commit 2645ee4

Please sign in to comment.