mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-08 06:38:46 +00:00
Further improvements to simplify information widgets
Signed-off-by: Denis Papec <denis.papec@gmail.com>
This commit is contained in:
parent
d4fd923be5
commit
a55fe939cb
12 changed files with 181 additions and 267 deletions
|
@ -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>;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue