remove incorrect using of setProps from component