Replacing presentChallengeDialog with React components