Skip to content

Commit

Permalink
Fixing and adding 2 new type changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Yahyakiani committed Nov 29, 2021
1 parent 758b4e6 commit 5ca6870
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/app/app/components/ArtistView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@ import { Artist } from '@nuclear/core';
import styles from './styles.scss';
import artPlaceholder from '../../../resources/media/art_placeholder.png';

type ReleaseTypeProps = 'master' | 'release'

type ArtistViewProps = {
artist: Artist & {
loading?: boolean;
};
isFavorite: boolean;
addTrackToQueue: (item: any) => Promise<void>;
artistInfoSearchByName: (artistName: any) => Promise<void>;
albumInfoSearch: (albumId: any, releaseType: any, release: any) => Promise<void>;
albumInfoSearch: (albumId: string, releaseType: ReleaseTypeProps, release: string) => Promise<void>;
removeFavoriteArtist: React.MouseEventHandler;
addFavoriteArtist: React.MouseEventHandler;
}
Expand Down
4 changes: 3 additions & 1 deletion packages/app/app/components/FavoriteAlbumsView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ type Album = {
tracklist: Array<Tracklist>
}

type ReleaseTypeProps = 'master' | 'release'

type FavoriteAlbumsViewProps = {
albums: Array<Album>;
removeFavoriteAlbum: React.MouseEventHandler;
albumInfoSearch: (albumId: any, releaseType: any, release: any) => Promise<void>;
albumInfoSearch: (albumId: string, releaseType: ReleaseTypeProps, release: string) => Promise<void>;
history:RouteComponentProps['history']
}

Expand Down

0 comments on commit 5ca6870

Please sign in to comment.