Solar panels are not going to fix sea-level rise.
They're an energy source that does not release carbon into the atmosphere. So, switching to solar panels will limit the carbon in the Earth's atmosphere in the future. That could help prevent sea-level rise from getting worse.
But solar panels do not take out the carbon that’s already there — the carbon that's already begun to cause global warming and rising seas.