Further improvements to simplify information widgets

Signed-off-by: Denis Papec <denis.papec@gmail.com>
This commit is contained in:
Denis Papec 2023-06-05 23:18:18 +01:00
parent d4fd923be5
commit a55fe939cb
No known key found for this signature in database
GPG key ID: DE0912C69A47222C
12 changed files with 181 additions and 267 deletions

View file

@ -1,5 +1,5 @@
import ContainerLink from "./container_link";
import SingleResource from "./single_resource";
import Resource from "./resource";
import Raw from "./raw";
import WidgetLabel from "./widget_label";
@ -7,9 +7,9 @@ export default function Resources({ options, children, target }) {
return <ContainerLink options={options} target={target}>
<Raw>
<div className="flex flex-row self-center flex-wrap justify-between">
{children.filter(child => child && child.type === SingleResource)}
{ children.filter(child => child && child.type === Resource) }
</div>
{children.filter(child => child && child.type === WidgetLabel)}
{ children.filter(child => child && child.type === WidgetLabel) }
</Raw>
</ContainerLink>;
}