mirror of
https://github.com/Steffo99/sophon.git
synced 2024-12-22 14:54:22 +00:00
🧹 Fix warnings
This commit is contained in:
parent
4e509c2721
commit
b8c9ee7a48
5 changed files with 7 additions and 7 deletions
|
@ -60,8 +60,8 @@ function App({..._}: RouteComponentProps) {
|
||||||
<ProjectRouter
|
<ProjectRouter
|
||||||
groupPk={selection.value.slug}
|
groupPk={selection.value.slug}
|
||||||
unselectedRoute={({viewSet}) => <>
|
unselectedRoute={({viewSet}) => <>
|
||||||
<ProjectListBox viewSet={viewSet}/>
|
|
||||||
<GroupCreateBox resource={selection}/>
|
<GroupCreateBox resource={selection}/>
|
||||||
|
<ProjectListBox viewSet={viewSet}/>
|
||||||
</>}
|
</>}
|
||||||
selectedRoute={({selection}) => <>
|
selectedRoute={({selection}) => <>
|
||||||
<ResourceDescriptionBox resource={selection} icon={faProjectDiagram}/>
|
<ResourceDescriptionBox resource={selection} icon={faProjectDiagram}/>
|
||||||
|
|
|
@ -5,14 +5,14 @@ import * as React from "react"
|
||||||
import ReactMarkdown from "react-markdown"
|
import ReactMarkdown from "react-markdown"
|
||||||
|
|
||||||
|
|
||||||
export interface DescriptionBox {
|
export interface DescriptionBoxProps {
|
||||||
icon: IconDefinition,
|
icon: IconDefinition,
|
||||||
name: string,
|
name: string,
|
||||||
description: string,
|
description: string,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export function DescriptionBox({icon, name, description}: DescriptionBox): JSX.Element {
|
export function DescriptionBox({icon, name, description}: DescriptionBoxProps): JSX.Element {
|
||||||
return React.useMemo(
|
return React.useMemo(
|
||||||
() => (
|
() => (
|
||||||
<Box>
|
<Box>
|
|
@ -1,7 +1,7 @@
|
||||||
import {IconDefinition} from "@fortawesome/fontawesome-svg-core"
|
import {IconDefinition} from "@fortawesome/fontawesome-svg-core"
|
||||||
import * as React from "react"
|
import * as React from "react"
|
||||||
import {ManagedResource} from "../../hooks/useManagedViewSet"
|
import {ManagedResource} from "../../hooks/useManagedViewSet"
|
||||||
import {DescriptionBox} from "../elements/DescriptionBox"
|
import {DescriptionBox} from "../elements/DescriptionBoxProps"
|
||||||
|
|
||||||
|
|
||||||
export interface NamedAndDescribed {
|
export interface NamedAndDescribed {
|
||||||
|
@ -25,6 +25,6 @@ export function ResourceDescriptionBox<T extends NamedAndDescribed>({resource, i
|
||||||
description={resource.value.description}
|
description={resource.value.description}
|
||||||
/>
|
/>
|
||||||
),
|
),
|
||||||
[resource],
|
[resource, icon],
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import {faServer} from "@fortawesome/free-solid-svg-icons"
|
import {faServer} from "@fortawesome/free-solid-svg-icons"
|
||||||
import * as React from "react"
|
import * as React from "react"
|
||||||
import {DescriptionBox} from "../elements/DescriptionBox"
|
import {DescriptionBox} from "../elements/DescriptionBoxProps"
|
||||||
|
|
||||||
|
|
||||||
export function SophonDescriptionBox(): JSX.Element {
|
export function SophonDescriptionBox(): JSX.Element {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import {faUniversity} from "@fortawesome/free-solid-svg-icons"
|
import {faUniversity} from "@fortawesome/free-solid-svg-icons"
|
||||||
import * as React from "react"
|
import * as React from "react"
|
||||||
import {useInstanceContext} from "../../contexts/instance"
|
import {useInstanceContext} from "../../contexts/instance"
|
||||||
import {DescriptionBox} from "../elements/DescriptionBox"
|
import {DescriptionBox} from "../elements/DescriptionBoxProps"
|
||||||
import {ErrorBox} from "../errors/ErrorBox"
|
import {ErrorBox} from "../errors/ErrorBox"
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue