Dahomey was a French colony of and a part of French West Africa from 1904 to 1958 .
It was part of French West Africa from 1904 to 1958 .