Generally speaking a potentiometer on its own will not make a very good LED dimmer.  It can be done but there are better ways.   Roger