Someday, electric cars will be the majority of personal vehicles.
It's getting there, but still a long way to go for many.
We'll still need petrol fueled long haul equipment, jet travel, heavy machinery, super tanker/container ships.
Batteries can only do so much, for so long and lose storage after so many cycles.
Until charging can be as instantaneous as filling your gas tank, it will take many years to be an optimal replacement.
Someday, maybe in my lifetime, but I don't see us getting even close for another 20-30+ years.
We'll still need a way to charge those batteries 24/7/365 at night or heavy overcast/storms and when the wind doesn't blow for days on end.