Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discotify: Martin #5

Closed
6 tasks done
flexbox opened this issue Feb 24, 2021 · 1 comment
Closed
6 tasks done

Discotify: Martin #5

flexbox opened this issue Feb 24, 2021 · 1 comment

Comments

@flexbox
Copy link
Owner

flexbox commented Feb 24, 2021

Application musicale

En tant que propriétaire de vinyle
Je souhaite ajouter un vinylle à mes favoris
Afin d'avoir accès à ma collection virtuelle

--

--

  • Créer une liste data.ts
interface VinylsProps {
  title: string
  artist: string
  image_url: string
  id: number
  date: string
}

export const allVinyls: VinylsProps[] = [
  {
    title: "From Mars to Sirius",
    artist: "Gojira",
    image_url: "https://m.media-amazon.com/images/I/91+7DKyZFmL._SS500_PIPJStripe-Robin-Large-V2,TopLeft,0,0_.jpg",
    id: 3245346,
    date: "Wed Feb 24 2021 09:56:19 GMT+0100 (Central European Standard Time)",
  },
  {
    title: "Dark side of the Moon",
    artist: 'Pink Floyd',
    image_url: "https://m.media-amazon.com/images/I/61Vs6BCeDHL._SS500_PIPJStripe-Robin-Large-V2,TopLeft,0,0_.jpg",
    id: 3245346,
    date: "Wed Feb 24 2021 09:56:19 GMT+0100 (Central European Standard Time)",
  },
  {
    title: "Les Sardines",
    artist: 'Patrick Sebastien',
    image_url:"https://m.media-amazon.com/images/I/81iGNNceqnL._SS500_.jpg",
    id: 3245346,
    date: "Wed Feb 24 2021 09:56:19 GMT+0100 (Central European Standard Time)",
  }
]

  • HomeScreen la liste de tous les allvinyls.json
  • CollectionScreen ma collection
@flexbox
Copy link
Owner Author

flexbox commented Feb 24, 2021

En tant qu'utilisateur
je peux afficher les details d'un album
afin d'ajouter au favoris

--

  • Créer un nouveau CollectionDetailScreen.tsx
  • utiliser navigation.navigate(ScreenName.ColellectionDetails)

@flexbox flexbox closed this as completed Mar 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant