There are no laws in Hinduism. There is only culture and rituals. The only book that is remotely considered as a Hindu law book is Manu Smriti. However, majority of Hindus reject it and laughed at. Most Hindus are backward castes and Dalits. They would never accept Manu Smriti and it gets constantly criticized/ridiculed and rightly so.Hindu Marriage Act is not part of hindu religion , it was passed by legislature . I do not think Hindu scriptures give right of divorce to women.
Hinduism is an inclusive religion and it can always be amended. No Hindu objected to the Hindu marriage act.