Merge branch 'gridstack' of https://github.com/manuel-rw/homarr into gridstack

This commit is contained in:
Meierschlumpf
2022-12-18 22:59:29 +01:00
69 changed files with 661 additions and 495 deletions

View File

@@ -31,19 +31,19 @@ export const DashboardSidebar = ({ location }: DashboardSidebarProps) => {
gs-min-row={minRow}
ref={refs.wrapper}
>
{items.map((service) => {
const { component: TileComponent, ...tile } = Tiles['service'];
{items.map((app) => {
const { component: TileComponent, ...tile } = Tiles['app'];
return (
<GridstackTileWrapper
id={service.id}
type="service"
key={service.id}
itemRef={refs.items.current[service.id]}
id={app.id}
type="app"
key={app.id}
itemRef={refs.items.current[app.id]}
{...tile}
{...service.shape.location}
{...service.shape.size}
{...app.shape.location}
{...app.shape.size}
>
<TileComponent className="grid-stack-item-content" service={service} />
<TileComponent className="grid-stack-item-content" app={app} />
</GridstackTileWrapper>
);
})}