dedicate A to ( doing ) B :把A奉献到(做)B 上,如
1 We dedicate this book of our trips to our 78-year-old grandpa.
翻译:我们把我们的旅游记事这本书奉献给我们78岁的爷爷
2 She has dedicated much of her time to taking care of the old in the community
翻译:她花费了许多时间照顾小区的老年人.
在此用法中,to为介词。
语境告诉你,不是不定式作状语用法。
这里的to不是不定式to do的用法,而是dedicate to短语的一部分,后面跟的是名词(或动名词等具有名词性质)。