Vanity mirror in sun visor broke

The tiny bit of plastic that acts as the hinge to flip the mirror cover up and down broke. I bought a used sun visor that was in terrible condition but where the mirror worked. Pried it out of the used one and installed it in the car. Works great. It simple pops out there aren’t even any wires just two terminals that make contact behind the mirror. Don’t mess with trying to repair it just get an old one there are lots on E-Bay. $20 for the used visor with mirror and 10 mins of effort.