mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-14 09:25:47 +01:00
✨ Add gridstack dashboard layout
This commit is contained in:
15
src/components/Dashboard/Tiles/HomarrCardWrapper.tsx
Normal file
15
src/components/Dashboard/Tiles/HomarrCardWrapper.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import { Card, CardProps } from '@mantine/core';
|
||||
import { ReactNode } from 'react';
|
||||
import { useCardStyles } from '../../layout/useCardStyles';
|
||||
|
||||
interface HomarrCardWrapperProps extends CardProps {
|
||||
children: ReactNode;
|
||||
}
|
||||
|
||||
export const HomarrCardWrapper = ({ ...props }: HomarrCardWrapperProps) => {
|
||||
const {
|
||||
cx,
|
||||
classes: { card: cardClass },
|
||||
} = useCardStyles();
|
||||
return <Card {...props} className={cx(props.className, cardClass)} />;
|
||||
};
|
||||
Reference in New Issue
Block a user