I\'m trying to use AnimatePresence to wrap my Switch and Routes in App.js. I also use props.history.push() to navigate through the different routes, and it doesn\'t change t