1
Fork 0
mirror of https://github.com/Steffo99/sophon.git synced 2024-12-22 06:44:21 +00:00

🔧 Rename DescriptionBoxProps to DescriptionBox (oops!)

This commit is contained in:
Steffo 2021-10-16 02:48:35 +02:00 committed by Stefano Pigozzi
parent fe5ed62480
commit 285105fe00
4 changed files with 5 additions and 5 deletions

View file

@ -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(
() => (
<Box>

View file

@ -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 {

View file

@ -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 {

View file

@ -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"