update link registration site to executive dashboard

This commit is contained in:
Alberto-Audrix committed 2026-09-15 09:44:45 +07:00
1 parent 1e6f6b3b57
commit d0d1ae7d24
26 files changed
+1044 -55

No files matched your search

+3 -3
View File
@@ -8,7 +8,7 @@ type FarmContextValue = {
kandangs: Kandang[];
flocks: Flock[];
cycles: Cycle[];
selectedSiteId: number | null;
selectedSiteId: string | null;
selectedKandangId: number | null;
selectedCycleId: number | null;
selectedSite: Site | null;
@@ -16,7 +16,7 @@ type FarmContextValue = {
selectedCycle: Cycle | null;
loading: boolean;
error: string | null;
setSelectedSiteId: (id: number | null) => void;
setSelectedSiteId: (id: string | null) => void;
setSelectedKandangId: (id: number | null) => void;
setSelectedCycleId: (id: number | null) => void;
reload: () => Promise<void>;
@@ -31,7 +31,7 @@ export const FarmProvider: React.FC<{ children: React.ReactNode }> = ({ children
const [kandangs, setKandangs] = useState<Kandang[]>([]);
const [flocks, setFlocks] = useState<Flock[]>([]);
const [cycles, setCycles] = useState<Cycle[]>([]);
const [selectedSiteId, setSelectedSiteId] = useState<number | null>(null);
const [selectedSiteId, setSelectedSiteId] = useState<string | null>(null);
const [selectedKandangId, setSelectedKandangId] = useState<number | null>(null);
const [selectedCycleId, setSelectedCycleId] = useState<number | null>(null);
const [loading, setLoading] = useState(false);