Add optional boxed styling and error component to information widgets

Signed-off-by: Denis Papec <denis.papec@gmail.com>
This commit is contained in:
Denis Papec committed 2023-06-03 02:14:38 +01:00
1 parent caa1b94fd6
commit c79d45f91e
14 files changed
+153 -122

No files matched your search

+6 -1
View File
@@ -1,8 +1,13 @@
import classNames from "classnames";
import ResolvedIcon from "components/resolvedicon"
export default function Logo({ options }) {
return (
<div className="w-12 h-12 flex flex-row items-center align-middle mr-3 self-center">
<div className={classNames(
"w-12 h-12 flex flex-row items-center align-middle mr-3 self-center",
options?.styleBoxed === true && " ml-4 mt-2 m:mb-0 rounded-md shadow-md shadow-theme-900/10 dark:shadow-theme-900/20 bg-theme-100/20 dark:bg-white/5 p-3",
)}>
{options.icon ?
<ResolvedIcon icon={options.icon} width={48} height={48} /> :
// fallback to homepage logo