Use fungus gnat traps with apple vinigar (or white vinigar with sugar), and add it a few drops to dish liquid to reduce water tention. Pour the liquid on a shallow and wide area container.
The trap is not very effective, only trapping a few gnats per day (where yellow sticky paper can trap up to 100 per day).