diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index e0c420f..278d5da 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -1,3 +1,4 @@ +import {faProjectDiagram, faUsers} from "@fortawesome/free-solid-svg-icons" import * as Reach from "@reach/router" import {RouteComponentProps} from "@reach/router" import {Chapter, LayoutThreeCol} from "@steffo/bluelib-react" @@ -53,7 +54,7 @@ function App({..._}: RouteComponentProps) { } selectedRoute={({selection}) => <> - + } selectedRoute={({selection}) => <> - + { - resource: ManagedResource + resource: ManagedResource, + icon: IconDefinition, } -export function ResourceDescriptionBox({resource}: ResourceDescriptionBoxProps): JSX.Element { +export function ResourceDescriptionBox({resource, icon}: ResourceDescriptionBoxProps): JSX.Element { return React.useMemo( () => ( - About {resource.value.name} +  About {resource.value.name} {resource.value.description} diff --git a/frontend/src/components/routing/ResourceRouter.tsx b/frontend/src/components/routing/ResourceRouter.tsx index dce7776..ba82982 100644 --- a/frontend/src/components/routing/ResourceRouter.tsx +++ b/frontend/src/components/routing/ResourceRouter.tsx @@ -20,10 +20,7 @@ export interface ResourceRouterProps { * @warning Due to some particular memoization, changes to `unselectedRoute` and `selectedRoute` will apply **only** when `selection` changes. * @constructor */ -export function ResourceRouter({selection, unselectedRoute, selectedRoute}: ResourceRouterProps): JSX.Element { - const UnselectedRoute = unselectedRoute - const SelectedRoute = selectedRoute - +export function ResourceRouter({selection, unselectedRoute: UnselectedRoute, selectedRoute: SelectedRoute}: ResourceRouterProps): JSX.Element { return React.useMemo( () => { if(selection) {