Heat a small pan over a low heat. Add butter and garlic and gently cook until butter starts to brown. Add sage leaves and cook for a minute, then remove from heat. Meanwhile, cook gnocchi. Toss sage butter through gnocchi and serve with shaved Parmesan.