src/components/history/MiniHistory.js
/**
   * function that works as a event listener for a mouse click on a list item
   * @param   {object} e event listener object
   * @return  {void}
   */
function that works as a event listener for a mouse click on a list item
@param   {object} e event listener object
@return  {void}
function that works as a event listener for a mouse click on a list item @param { object } e event listener object @return { void }
function updateActiveIndex(e) {
    const prevSelected = document.querySelector('.selected-history');
    if (prevSelected) {
      prevSelected.classList.remove('selected-history');
    }
    e.target.classList.add('selected-history');
    selectedIndex = e.target.value;
    if (props.showFetchDetails) {
      props.showFetchDetails(selectedIndex);
    }
  }
function updateActiveIndex ( e ) { const prevSelected = document . querySelector ( '.selected-history' ) ; if ( prevSelected ) { prevSelected . classList . remove ( 'selected-history' ) ; } e . target . classList . add ( 'selected-history' ) ; selectedIndex = e . target . value ; if ( props . showFetchDetails ) { props . showFetchDetails ( selectedIndex ) ; } }
function that works as a event listener for a mouse click on a list item
 @param   {object} e event listener object
 @return  {void}
function that works as a event listener for a mouse click on a list item @param { object } e event listener object @return { void }