src/Slot/Slot.js
/**
   * Update the slot after it has been booked.
   * @param {Object} data - The data to update from.
   */
Update the slot after it has been booked.
@param {Object} data - The data to update from.
Update the slot after it has been booked . @param { Object } data - The data to update from .
update(data) {
    if (data.success) {
      this.setState({
        cleaner: data.cleaner.name.slice()
      })
    }
  }
update ( data ) { if ( data . success ) { this . setState ( { cleaner : data . cleaner . name . slice ( ) } ) } }
Update the slot after it has been booked.
Update the slot after it has been booked .