Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Chong <[email protected]>
  • Loading branch information
aaronchongth committed Jul 10, 2024
1 parent 1490593 commit ee31881
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
1 change: 0 additions & 1 deletion packages/react-components/lib/tasks/create-task.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,6 @@ export function CreateTaskForm({
<DoubleComposeDeliveryTaskForm
taskDesc={taskRequest.description as DoubleComposeDeliveryTaskDescription}
pickupPoints={pickupPoints}
cartIds={cartIds}
dropoffPoints={dropoffPoints}
onChange={(desc: DoubleComposeDeliveryTaskDescription) => {
desc.category = taskRequest.description.category;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -662,12 +662,11 @@ describe('Custom deliveries', () => {

const description: DoubleComposeDeliveryTaskDescription =
makeDefaultDoubleComposeDeliveryTaskDescription();
let firstPickupPhase = cartPickupPhaseInsertPickup(
const firstPickupPhase = cartPickupPhaseInsertPickup(
description.phases[0],
'test_first_pickup_place',
'test_first_pickup_lot',
);
firstPickupPhase = cartPickupPhaseInsertCartId(firstPickupPhase, 'test_first_cart_id');
let firstDeliveryPhase = deliveryPhaseInsertDropoff(
description.phases[1],
'test_first_dropoff_place',
Expand All @@ -677,12 +676,11 @@ describe('Custom deliveries', () => {
'test_waypoint_2',
'test_waypoint_3',
]);
let secondPickupPhase = cartPickupPhaseInsertPickup(
const secondPickupPhase = cartPickupPhaseInsertPickup(
description.phases[3],
'test_second_pickup_place',
'test_second_pickup_lot',
);
secondPickupPhase = cartPickupPhaseInsertCartId(secondPickupPhase, 'test_second_cart_id');
let secondDeliveryPhase = deliveryPhaseInsertDropoff(
description.phases[4],
'test_second_dropoff_place',
Expand Down
4 changes: 0 additions & 4 deletions packages/react-components/lib/tasks/types/delivery-custom.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -241,11 +241,9 @@ export function makeDoubleComposeDeliveryTaskShortDescription(
): string {
try {
const firstGoToPickup: GoToPlaceActivity = desc.phases[0].activity.description.activities[0];
const firstPickup: LotPickupActivity = desc.phases[0].activity.description.activities[1];
const firstGoToDropoff: GoToPlaceActivity = desc.phases[1].activity.description.activities[0];

const secondGoToPickup: GoToPlaceActivity = desc.phases[3].activity.description.activities[0];
const secondPickup: LotPickupActivity = desc.phases[3].activity.description.activities[1];
const secondGoToDropoff: GoToPlaceActivity = desc.phases[4].activity.description.activities[0];

return `[${taskDisplayName ?? DeliveryPickupTaskDefinition.taskDisplayName}] from [${
Expand Down Expand Up @@ -599,7 +597,6 @@ export function DeliveryPickupTaskForm({
interface DoubleComposeDeliveryTaskFormProps {
taskDesc: DoubleComposeDeliveryTaskDescription;
pickupPoints: Record<string, string>;
cartIds: string[];
dropoffPoints: Record<string, string>;
onChange(taskDesc: DoubleComposeDeliveryTaskDescription): void;
onValidate(valid: boolean): void;
Expand All @@ -608,7 +605,6 @@ interface DoubleComposeDeliveryTaskFormProps {
export function DoubleComposeDeliveryTaskForm({
taskDesc,
pickupPoints = {},
cartIds = [],
dropoffPoints = {},
onChange,
onValidate,
Expand Down

0 comments on commit ee31881

Please sign in to comment.