Skip to content

Commit

Permalink
Added ds projects placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
shayanaijaz committed Jan 19, 2024
1 parent 5d0d5c4 commit 7bb9051
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions react/src/components/Systems/SystemSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ export const SystemSelect: React.FC<SystemSelectProps> = ({
}) => {
const { data: systems } = useSystems();

// use dsProjects hook here
const dsProjects: any[] = [];

const findSystemById = (id: string): System | undefined => {
return systems?.find((system) => system.id === id);
};
Expand All @@ -35,6 +38,15 @@ export const SystemSelect: React.FC<SystemSelectProps> = ({
{publishDataSystem && (
<option value={publishDataSystem.id}>Published Data</option>
)}
<optgroup label="My Projects">
{dsProjects.map((proj) => {
return (
<option key={proj.id} value={proj.id}>
{proj.ds_project.title}
</option>
);
})}
</optgroup>
</select>
</>
);
Expand Down

0 comments on commit 7bb9051

Please sign in to comment.