
Enhanced the `SampleTracker` component to accept and utilize an `activePgroup` prop, allowing dynamic filtering of data based on the current project group. Adjusted related polling and data fetching logic to respond to changes in `activePgroup`. Removed excessive code from the test notebook for cleanup.
24 lines
523 B
TypeScript
24 lines
523 B
TypeScript
// components/ResultView.tsx
|
|
|
|
import React from 'react';
|
|
import SampleTracker from '../components/SampleTracker';
|
|
import ResultGrid from '../components/ResultGrid';
|
|
|
|
interface ResultsViewProps {
|
|
activePgroup: string;
|
|
}
|
|
|
|
const ResultsView: React.FC<ResultsViewProps> = ({activePgroup
|
|
}) => {
|
|
|
|
return (
|
|
<div>
|
|
<h1>Results Page</h1>
|
|
<SampleTracker activePgroup={activePgroup}/>
|
|
<ResultGrid activePgroup={activePgroup} />
|
|
</div>
|
|
|
|
);
|
|
};
|
|
|
|
export default ResultsView; |