It just depends on what you call i and r and which angle you know.
You can also write it as ##\sin(\alpha) n_\alpha = \sin(\beta) n_\beta## where nα means the refractive index of the medium where you have the angle α and similar for β. Usually, one medium is air with n=1.
As I said, it does not matter how you call them, you just have to be consistent. n refers to the water, so the sine in the denominator on the other side should use the angle in the water here.