{}
+
+export interface ItemTableListInnerColumn extends ItemTableListColumn {
+ type: TableColumn;
+}
+
+export const ItemTableListColumn = (props: ItemTableListColumn) => {
+ const type = props.columns[props.columnIndex].id as TableColumn;
+
+ switch (type) {
+ case TableColumn.DURATION:
+ return ;
+ case TableColumn.GENRE:
+ return ;
+ case TableColumn.IMAGE:
+ return ;
+ case TableColumn.ROW_INDEX:
+ return ;
+ default:
+ return ;
+ }
+};
+
+const NonMutedColumns = [TableColumn.TITLE];
+
+export const TableColumnContainer = (
+ props: ItemTableListColumn & {
+ children: React.ReactNode;
+ className?: string;
+ containerClassName?: string;
+ type: TableColumn;
+ },
+) => {
+ return (
+ props.handleExpand(e, props.data[props.rowIndex], props.itemType)}
+ style={props.style}
+ >
+
+ {props.children}
+
+
+ );
+};
diff --git a/src/shared/types/types.ts b/src/shared/types/types.ts
index 7c2a0eec0..eb918fdfd 100644
--- a/src/shared/types/types.ts
+++ b/src/shared/types/types.ts
@@ -156,7 +156,9 @@ export enum TableColumn {
DATE_ADDED = 'dateAdded',
DISC_NUMBER = 'discNumber',
DURATION = 'duration',
- GENRE = 'genre',
+ GENRE = 'genres',
+ ID = 'id',
+ IMAGE = 'imageUrl',
LAST_PLAYED = 'lastPlayedAt',
OWNER = 'username',
PATH = 'path',
@@ -166,7 +168,7 @@ export enum TableColumn {
SIZE = 'size',
SKIP = 'skip',
SONG_COUNT = 'songCount',
- TITLE = 'title',
+ TITLE = 'name',
TITLE_COMBINED = 'titleCombined',
TRACK_NUMBER = 'trackNumber',
USER_FAVORITE = 'userFavorite',