Do you mean after the "to"? It is a common mistake to think that this is part of an infinitive (hence many students think the first sentence must be correct). In fact, though, it is simply a preposition selected by "dedicated". Like most prepositions, it can be followed by a gerund in place of a noun.Would it be correct to use the ing form following the infinitive?
We are dedicated to football.
We are dedicated to communication.
We are dedicated to communicating.
Student or Learner