Converting done dialog into a react component