It takes a lot of learning and improving, but some things to keep in mind are:
Be aware of your leadership style. Be ready to change it based on the team culture.
You should strive to be accepted and not judged by the team members.
Be critical about self — improving.
There is always room to improve. The methods that worked in one team can be inefficient in another one.
Lead by example instead of being the one who bosses around. Wanna hear great feedback? Give feedback. Want the team members to be on time? Don’t be late.
Keep the boundaries.
You may be friends with some of the team members, but remember that business is business.
Never use personal info against someone.Turn to others for mentoring- there’s always room for learning from the experience of others.
Be emotionally intelligent as you come across all kinds of egos- be able to regulate and manage your emotions so you can be successful in managing others.