diff --git a/frontend/src/components/elements/DescriptionBoxProps.tsx b/frontend/src/components/elements/DescriptionBox.tsx similarity index 91% rename from frontend/src/components/elements/DescriptionBoxProps.tsx rename to frontend/src/components/elements/DescriptionBox.tsx index 0b49fd6..b7ddda3 100644 --- a/frontend/src/components/elements/DescriptionBoxProps.tsx +++ b/frontend/src/components/elements/DescriptionBox.tsx @@ -5,14 +5,14 @@ import * as React from "react" import ReactMarkdown from "react-markdown" -export interface DescriptionBoxProps { +export interface DescriptionBox { icon: IconDefinition, name: string, description: string, } -export function DescriptionBox({icon, name, description}: DescriptionBoxProps): JSX.Element { +export function DescriptionBox({icon, name, description}: DescriptionBox): JSX.Element { return React.useMemo( () => ( diff --git a/frontend/src/components/generic/ResourceDescriptionBox.tsx b/frontend/src/components/generic/ResourceDescriptionBox.tsx index 6ccc14c..d92fc5d 100644 --- a/frontend/src/components/generic/ResourceDescriptionBox.tsx +++ b/frontend/src/components/generic/ResourceDescriptionBox.tsx @@ -1,7 +1,7 @@ import {IconDefinition} from "@fortawesome/fontawesome-svg-core" import * as React from "react" import {ManagedResource} from "../../hooks/useManagedViewSet" -import {DescriptionBox} from "../elements/DescriptionBoxProps" +import {DescriptionBox} from "../elements/DescriptionBox" export interface NamedAndDescribed { diff --git a/frontend/src/components/informative/SophonDescriptionBox.tsx b/frontend/src/components/informative/SophonDescriptionBox.tsx index 7c1615d..669df72 100644 --- a/frontend/src/components/informative/SophonDescriptionBox.tsx +++ b/frontend/src/components/informative/SophonDescriptionBox.tsx @@ -1,6 +1,6 @@ import {faServer} from "@fortawesome/free-solid-svg-icons" import * as React from "react" -import {DescriptionBox} from "../elements/DescriptionBoxProps" +import {DescriptionBox} from "../elements/DescriptionBox" export function SophonDescriptionBox(): JSX.Element { diff --git a/frontend/src/components/instance/InstanceDescriptionBox.tsx b/frontend/src/components/instance/InstanceDescriptionBox.tsx index a829f00..51c535e 100644 --- a/frontend/src/components/instance/InstanceDescriptionBox.tsx +++ b/frontend/src/components/instance/InstanceDescriptionBox.tsx @@ -1,7 +1,7 @@ import {faUniversity} from "@fortawesome/free-solid-svg-icons" import * as React from "react" import {useInstanceContext} from "../../contexts/instance" -import {DescriptionBox} from "../elements/DescriptionBoxProps" +import {DescriptionBox} from "../elements/DescriptionBox" import {ErrorBox} from "../errors/ErrorBox"