mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-07 01:26:01 -08:00
Run pre-commit hooks over existing codebase
Co-Authored-By: Ben Phelps <ben@phelps.io>
This commit is contained in:
@@ -7,14 +7,16 @@ import WidgetLabel from "./widget_label";
|
||||
|
||||
export default function Resources({ options, children, target, additionalClassNames }) {
|
||||
const widgetParts = [].concat(...children);
|
||||
const addedClassNames = classNames('information-widget-resources', additionalClassNames);
|
||||
const addedClassNames = classNames("information-widget-resources", additionalClassNames);
|
||||
|
||||
return <ContainerLink options={options} target={target} additionalClassNames={ addedClassNames }>
|
||||
<Raw>
|
||||
<div className="flex flex-row self-center flex-wrap justify-between">
|
||||
{ widgetParts.filter(child => child && child.type === Resource) }
|
||||
</div>
|
||||
{ widgetParts.filter(child => child && child.type === WidgetLabel) }
|
||||
</Raw>
|
||||
</ContainerLink>;
|
||||
return (
|
||||
<ContainerLink options={options} target={target} additionalClassNames={addedClassNames}>
|
||||
<Raw>
|
||||
<div className="flex flex-row self-center flex-wrap justify-between">
|
||||
{widgetParts.filter((child) => child && child.type === Resource)}
|
||||
</div>
|
||||
{widgetParts.filter((child) => child && child.type === WidgetLabel)}
|
||||
</Raw>
|
||||
</ContainerLink>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user