Adding a Context Menu to the Pilots List
Explore how to integrate a context menu into a pilots list by using Redux actions and React components. Understand handling right-click events, passing pilot data to the context menu, and managing state for selections and deletions within the Redux framework.
We'll cover the following...
We'll cover the following...
The majority of Project Mini-Mek’s functionality thus far has involved the “Pilots” tab, so we’ll work with that. We’ve already added the ability to select a current pilot from the list, and delete a pilot, so let’s add a context menu that offers that capability as well.
Commit a6eb7ed: Implement a context menu for pilots list items
features/pilots/PilotsList/PilotsListItemMenu.jsx
import React, { Component } from 'react'
import {connect} from ...