Skip to content

Commit cbe8aa3

Browse files
committed
Fixed unused things so frontend can build
1 parent 68e84cf commit cbe8aa3

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

frontend/src/main-page/grants/filter-bar/FilterBar.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ import {
55
statusToString,
66
} from "../../../../../middle-layer/types/Status.ts";
77
import {
8-
fetchAllGrants,
98
updateFilter,
109
} from "../../../external/bcanSatchel/actions.ts";
1110
import { observer } from "mobx-react-lite";
12-
import { ProcessGrantData } from "./processGrantData.ts";
11+
// import { ProcessGrantData } from "./processGrantData.ts";
1312
import CalendarDropdown from "./CalendarDropdown.tsx";
1413
import { FaChevronRight } from "react-icons/fa";
1514

@@ -33,7 +32,7 @@ const linkList: FilterBarProps[] = [
3332
*/
3433
const FilterBar: React.FC = observer(() => {
3534
const [selected, setSelected] = useState("All Grants");
36-
const { grants } = ProcessGrantData();
35+
// const { grants } = ProcessGrantData();
3736
function categoryClicked(
3837
e: React.MouseEvent,
3938
category: string,

frontend/src/main-page/grants/new-grant/NewGrantModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ const NewGrantModal: React.FC<{ onClose: () => void }> = ({ onClose }) => {
196196
estimated_completion_time: estimatedCompletionTimeInHours,
197197
description,
198198
attachments: attachmentsArray,
199-
restricted_or_unrestricted: "unrestricted", // Default to unrestricted for now
199+
isRestricted: false, // Default to unrestricted for now
200200
};
201201
console.log(newGrant);
202202
try {

0 commit comments

Comments
 (0)