Skip to content

Commit

Permalink
chore: remove unused imports and variables for build
Browse files Browse the repository at this point in the history
  • Loading branch information
jackcasstlesjones committed Dec 11, 2024
1 parent 8a231a4 commit 487e283
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
6 changes: 0 additions & 6 deletions src/app/needs/components/NeedsDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export default function NeedsDisplay() {
const [worthDoing, setWorthDoing] = useState<number>(0);
const [positiveLabel, setPositiveLabel] = useState<string>("urgent");
const [negativeLabel, setNegativeLabel] = useState<string>("not urgent");
const [isModalCompleted, setIsModalCompleted] = useState(false);

const fetchCategories = async () => {
const response = await database.getFromDb("needs_categories");
Expand Down Expand Up @@ -125,11 +124,9 @@ export default function NeedsDisplay() {
handleIncrease(setEffortful);
} else if (needsStep === 3) {
handleIncrease(setWorthDoing);
setIsModalCompleted(true);

setModalOpen(false);
setNeedsStep(1);
setIsModalCompleted(false);
}
};

Expand All @@ -140,12 +137,9 @@ export default function NeedsDisplay() {
handleDecrease(setEffortful);
} else if (needsStep === 3) {
handleDecrease(setWorthDoing);
setIsModalCompleted(true);

setModalOpen(false);
setNeedsStep(1);

setIsModalCompleted(false);
}
};

Expand Down
1 change: 0 additions & 1 deletion src/app/needs/components/NeedsModal.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import Button from "@/ui/shared/Button";
import { ChevronLeftIcon } from "@heroicons/react/24/outline";
import { XMarkIcon } from "@heroicons/react/24/outline";
import { Dispatch, SetStateAction } from "react";

interface ModalProps {
inputModal?: boolean;
Expand Down
1 change: 0 additions & 1 deletion src/lib/utils/retrieveDataObject.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { RxDocument } from "rxdb";
import { Insight } from "@/app/insights/components/InsightsDisplay";

export default function retrieveDataObject<T>(dataArr: RxDocument<T>[]): T[] {
return dataArr.map((item) => item._data);
Expand Down

0 comments on commit 487e283

Please sign in to comment.