🎨 Migrate all wrapper to use WidgetWrapper

This commit is contained in:
Meierschlumpf
2022-12-19 18:26:04 +01:00
parent 8fa9cfaccf
commit c2186c2525
9 changed files with 153 additions and 202 deletions

View File

@@ -1,6 +1,4 @@
import { IconClock, IconFileDownload } from '@tabler/icons';
import { HomarrCardWrapper } from '../../components/Dashboard/Tiles/HomarrCardWrapper';
import { BaseTileProps } from '../../components/Dashboard/Tiles/type';
import { IconFileDownload } from '@tabler/icons';
import { defineWidget } from '../helper';
import { IWidget } from '../widgets';
@@ -19,12 +17,12 @@ const definition = defineWidget({
export type IBitTorrent = IWidget<typeof definition['id'], typeof definition>;
interface BitTorrentTileProps extends BaseTileProps {
widget: IBitTorrent; // TODO: change to new type defined through widgetDefinition
interface BitTorrentTileProps {
widget: IBitTorrent;
}
function BitTorrentTile({ className, widget }: BitTorrentTileProps) {
return <HomarrCardWrapper>Bit Torrent</HomarrCardWrapper>;
function BitTorrentTile({ widget }: BitTorrentTileProps) {
return null;
}
export default definition;