Am I good for doing this?

I have a 12day old baby girl, she was 6pound 15ounces when born. Since then the midwife stated she has not been putting on weight. I fed her breast milk all day and in the night formula. Today the midwife said she lost more weight than last time. So I decided I will start to feed her just formula as the breast milk may not have enough calories due to my diet. Do you think she will put more weight on with formula? Please help x