The smoke was detected in the flight deck, which resulted in the flight crew diverting to West Palm Beach.