You need a single pole switch.
Black wire goes to the bottom
White wire to the top
Ground to the ground tab on the switch
Sent from my SM-G973U using Tapatalk
Black wire goes to the bottom
White wire to the top
Ground to the ground tab on the switch

Sent from my SM-G973U using Tapatalk