Changing the type of boolean props to Confirm.