T-Mobile OnePlus 6T not charging.

I currently own a T-Mobile OnePlus 6T that stopped charging. It does recognize that it is connected by the charging animation but it doesn't actually charge. I am thinking of replacing the battery and the charging port. Any tips or anything else I should also replace?