Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 795a6b7290 |
@@ -172,8 +172,8 @@ export class MediaPlayer {
|
|||||||
return this.favoritesStore.getFavorites();
|
return this.favoritesStore.getFavorites();
|
||||||
}
|
}
|
||||||
|
|
||||||
public async addFavorite(item: PlaylistItem) {
|
public async addFavorite(filename: string) {
|
||||||
return this.favoritesStore.addFavorite(item);
|
return this.favoritesStore.addFavorite(filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
public async removeFavorite(filename: string) {
|
public async removeFavorite(filename: string) {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
import React, { useState, useRef, useEffect, ReactNode } from 'react';
|
import React, { useState, useRef, useEffect, ReactNode } from 'react';
|
||||||
import { FaPlay, FaVolumeUp, FaVolumeOff, FaHeart } from 'react-icons/fa';
|
import { FaPlay, FaVolumeUp, FaVolumeOff } from 'react-icons/fa';
|
||||||
import { getDisplayTitle, PlaylistItem } from '../api/player';
|
import { getDisplayTitle, PlaylistItem } from '../api/player';
|
||||||
|
|
||||||
export enum PlayState {
|
export enum PlayState {
|
||||||
|
|||||||
Reference in New Issue
Block a user