Refactored information widgets, improve widget-boxed style
Signed-off-by: Denis Papec <denis.papec@gmail.com>
This commit is contained in:
37 files changed
+701
-858
No files matched your search
@@ -0,0 +1,15 @@
|
||||
import ContainerLink from "./container_link";
|
||||
import SingleResource from "./single_resource";
|
||||
import Raw from "./raw";
|
||||
import WidgetLabel from "./widget_label";
|
||||
|
||||
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)}
|
||||
</div>
|
||||
{children.filter(child => child && child.type === WidgetLabel)}
|
||||
</Raw>
|
||||
</ContainerLink>;
|
||||
}
|
||||
Reference in new issue
Block a user