mirror of
https://github.com/Steffo99/sophon.git
synced 2024-12-22 14:54:22 +00:00
🔧 Add flavour text to GroupListBox
This commit is contained in:
parent
293856ebc8
commit
17d138b61f
1 changed files with 6 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
|||
import {Box, Heading} from "@steffo/bluelib-react"
|
||||
import * as React from "react"
|
||||
import {useInstanceContext} from "../../contexts/instance"
|
||||
import {ManagedViewSet} from "../../hooks/useManagedViewSet"
|
||||
import {SophonResearchGroup} from "../../types/SophonTypes"
|
||||
import {GroupResourcePanel} from "./GroupResourcePanel"
|
||||
|
@ -11,13 +12,16 @@ export interface GroupListBoxProps {
|
|||
|
||||
|
||||
export function GroupListBox({viewSet}: GroupListBoxProps): JSX.Element {
|
||||
// TODO: Add some flavour text
|
||||
const instance = useInstanceContext()
|
||||
|
||||
return (
|
||||
<Box>
|
||||
<Heading level={3}>
|
||||
Research groups
|
||||
Research groups on {instance?.state.details?.name}
|
||||
</Heading>
|
||||
<p>
|
||||
Research groups are groups of people that work together on one or more research projects.
|
||||
</p>
|
||||
{viewSet.resources?.map(res => <GroupResourcePanel resource={res} key={res.value.slug}/>)}
|
||||
</Box>
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue