Replacing a dimmer switch with regular
The same two wires that connect to the dimmer connect to the new switch. Ground is extra, but for switching purposes, the two wires connected to the dimmer connect to the switch. Polarity, or which is which don't matter.