From 285105fe001e1bd5c2085994cdfc75f74fb3dacb Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 16 Oct 2021 02:48:35 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Rename=20`DescriptionBoxProps`?= =?UTF-8?q?=20to=20`DescriptionBox`=20(oops!)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../elements/{DescriptionBoxProps.tsx => DescriptionBox.tsx} | 4 ++-- frontend/src/components/generic/ResourceDescriptionBox.tsx | 2 +- frontend/src/components/informative/SophonDescriptionBox.tsx | 2 +- frontend/src/components/instance/InstanceDescriptionBox.tsx | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) rename frontend/src/components/elements/{DescriptionBoxProps.tsx => DescriptionBox.tsx} (91%) 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"