2 Week Old Sleeping In Glider Swing?

Okay guys so I’ve seen people do this and ones that are total against it ! So I want to hear your option on it.

My 2 week old has a awful hard time sleeping at night she has to sleep with “white noise” and a passy.. but she will not for anything stay asleep in her bassinet. I slept 3 hours last night because she wouldn’t sleep and I thought maybe it was gas because she had been having tummy problems but now I kinda think it’s just that she doesn’t like to sleep in her bassinet?? She will sleep in her glider/swing perfect fine🤞🏽 and co sleep perfectly fine but when it comes to sleeping in her bassinet she has such a hard time. Any advice ?