mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-07 01:26:01 -08:00
Further improvements to simplify information widgets
Signed-off-by: Denis Papec <denis.papec@gmail.com>
This commit is contained in:
@@ -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>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user