Thrush and pumping.....

If me and my baby have thrush should I not breastfeed him until it clears up and just pump and give it to him in the bottle?? Or does that even make a difference? Note: When I do breast feed I use a nipple shield