diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 447a599..443bea2 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -66,10 +66,11 @@ const App: React.FC = () => { }, []); const handlePgroupChange = (newPgroup: string) => { - setActivePgroup(newPgroup); + setActivePgroup(newPgroup); // Updates active pgroup state in App console.log(`pgroup changed to: ${newPgroup}`); }; + return ( { } />} /> } />} /> } />} /> - } />} /> - } />} /> - } />}/> + + } + /> + } + /> + + } + /> + } + /> + } />}/> {/* Optionally, add a 404 fallback route */} Page not found} /> diff --git a/frontend/src/components/BeamtimeOverview.tsx b/frontend/src/components/BeamtimeOverview.tsx index 9c8d01c..964e020 100644 --- a/frontend/src/components/BeamtimeOverview.tsx +++ b/frontend/src/components/BeamtimeOverview.tsx @@ -16,9 +16,10 @@ interface BeamtimeRecord { interface BeamtimeOverviewProps { activePgroup: string; + onPgroupChange: (pgroup: string) => void; // Add callback to update the selected pgroup } -const BeamtimeOverview: React.FC = ({ activePgroup }) => { +const BeamtimeOverview: React.FC = ({ activePgroup, onPgroupChange }) => { const [rows, setRows] = useState([]); const [isLoading, setIsLoading] = useState(false); @@ -101,7 +102,7 @@ const BeamtimeOverview: React.FC = ({ activePgroup }) => flex: 1, renderCell: (params) => (