Signed-off-by: Matt Bruce <mbrucedogs@gmail.com>
This commit is contained in:
parent
0f53848671
commit
c0f28e3a7d
@ -5,6 +5,7 @@ export { default as InfiniteScrollList } from './InfiniteScrollList';
|
|||||||
export { default as PageHeader } from './PageHeader';
|
export { default as PageHeader } from './PageHeader';
|
||||||
export { default as PlayerControls } from './PlayerControls';
|
export { default as PlayerControls } from './PlayerControls';
|
||||||
export { default as SongItem, SongInfoDisplay, SongActionButtons } from './SongItem';
|
export { default as SongItem, SongInfoDisplay, SongActionButtons } from './SongItem';
|
||||||
|
export { default as SongInfo } from './SongInfo';
|
||||||
export { default as Toast } from './Toast';
|
export { default as Toast } from './Toast';
|
||||||
export { TwoLineDisplay } from './TwoLineDisplay';
|
export { TwoLineDisplay } from './TwoLineDisplay';
|
||||||
export { ListItem } from './ListItem';
|
export { ListItem } from './ListItem';
|
||||||
@ -1,7 +1,7 @@
|
|||||||
import React, { useState, useMemo, useCallback } from 'react';
|
import React, { useState, useMemo, useCallback } from 'react';
|
||||||
import { IonItem, IonLabel, IonModal, IonHeader, IonToolbar, IonTitle, IonButton, IonIcon, IonChip, IonContent, IonList, IonAccordionGroup, IonAccordion } from '@ionic/react';
|
import { IonItem, IonLabel, IonModal, IonHeader, IonToolbar, IonTitle, IonButton, IonIcon, IonChip, IonContent, IonList, IonAccordionGroup, IonAccordion } from '@ionic/react';
|
||||||
import { close, list } from 'ionicons/icons';
|
import { close, list } from 'ionicons/icons';
|
||||||
import { InfiniteScrollList, SongItem } from '../../components/common';
|
import { InfiniteScrollList, SongItem, ListItem } from '../../components/common';
|
||||||
import { useSongLists } from '../../hooks';
|
import { useSongLists } from '../../hooks';
|
||||||
import { useAppSelector } from '../../redux';
|
import { useAppSelector } from '../../redux';
|
||||||
import { selectSongList } from '../../redux';
|
import { selectSongList } from '../../redux';
|
||||||
@ -58,17 +58,12 @@ const SongLists: React.FC = () => {
|
|||||||
|
|
||||||
// Render song list item for InfiniteScrollList
|
// Render song list item for InfiniteScrollList
|
||||||
const renderSongListItem = (songList: SongList) => (
|
const renderSongListItem = (songList: SongList) => (
|
||||||
<IonItem button onClick={() => handleSongListClick(songList.key!)} detail={false}>
|
<ListItem
|
||||||
<IonLabel>
|
primaryText={songList.title}
|
||||||
<div className="text-sm font-medium text-gray-900">
|
secondaryText={`${songList.songs.length} song${songList.songs.length !== 1 ? 's' : ''}`}
|
||||||
{songList.title}
|
icon={list}
|
||||||
</div>
|
onClick={() => handleSongListClick(songList.key!)}
|
||||||
<div className="text-sm text-gray-500">
|
/>
|
||||||
{songList.songs.length} song{songList.songs.length !== 1 ? 's' : ''}
|
|
||||||
</div>
|
|
||||||
</IonLabel>
|
|
||||||
<IonIcon icon={list} slot="end" color="primary" />
|
|
||||||
</IonItem>
|
|
||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user