In Punk Hazard Law asked Luffy who can use haki when they were about to face Caesar. Luffy said himself, Zoro and Sanji can use haki and to face logia like Caesar, Luffy was talking about CoA so Sanji can use CoA.
Sanji just didn't need it against Page One since Page One is way weaker than Sanji.