main-project/app/client/src/Components/Admin/SelectUser.js
/*
    HELPER METHOD:
    Generate the table of user information to be shown from userList in state.
    Respects type of user selected (ex. admin).
    Rerenders on state change (specifically, when the user selected a different
    user type to display).
   */
HELPER METHOD:
Generate the table of user information to be shown from userList in state.
Respects type of user selected (ex. admin).
Rerenders on state change (specifically, when the user selected a different
user type to display).
HELPER METHOD : Generate the table of user information to be shown from userList in state . Respects type of user selected ( ex . admin ) . Rerenders on state change ( specifically when the user selected a different user type to display ) .
generateHoursRows() {
    const compiledList = [];
    for (let userEntry of this.state.userList) {
      if (this.state.selectedType === userEntry.userType) {
        compiledList.push(
          this.generateHourRow(
            userEntry.email,
            userEntry.firstName,
            userEntry.lastName,
            userEntry.userType
          )
        );
      }
    }
    return compiledList;
  }
generateHoursRows ( ) { const compiledList = [ ] ; for ( let userEntry of this . state . userList ) { if ( this . state . selectedType === userEntry . userType ) { compiledList . push ( this . generateHourRow ( userEntry . email , userEntry . firstName , userEntry . lastName , userEntry . userType ) ) ; } } return compiledList ; }
HELPER METHOD:
Generate the table of user information to be shown from userList in state.
HELPER METHOD : Generate the table of user information to be shown from userList in state .