Skip to content

Commit

Permalink
Add important note in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jewelltaylor committed May 24, 2024
1 parent b1a1f8a commit 5de2b2a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions florist/app/jobs/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { useGetJobsByJobStatus } from "./hooks";
import Image from "next/image";
import loading_gif from "../assets/img/loading.gif";

// Must be in same order as array returned from useGetJobsByJobStatus
export const validStatuses = {
NOT_STARTED: "Not Started",
IN_PROGRESS: "In Progress",
Expand Down Expand Up @@ -37,6 +38,7 @@ interface StatusProp {
}

export function useGetJobsFromEachJobStatus() {
// Must be in the same order as the validStatuses object.
const statusDataFetches = [
useGetJobsByJobStatus("NOT_STARTED"),
useGetJobsByJobStatus("IN_PROGRESS"),
Expand Down

0 comments on commit 5de2b2a

Please sign in to comment.