It is often said, "When the right hand gives, the left hand should also not know." This should be the intention behind donation. People used to take pride in this. You should also take pride in the same thing. At least some time or another, do some service for which you are not expecting any return or recognition. This act brings you so much joy. Once you get the taste of such purely service, you will find it so blissful, so interesting that you will want to go for it again and again. So, every now and then, do some service without wanting any recognition for it.
For the other things that you do, it is quite natural to want recognition. You do some good work in your office and you want recognition, there is nothing wrong in that. When you find real fulfillment in life, you feel so contented, then you don't mind whether someone recognizes you or not. You keep doing what is good for you.