fix: revert mode prop in fetch and AnimatePresence

This commit is contained in:
Roo Code 2025-12-10 13:45:26 +00:00
parent 9883416ba6
commit 7230211418
2 changed files with 2 additions and 2 deletions

View file

@ -87,7 +87,7 @@ export function ContactForm({ formType, buttonText, buttonClassName }: ContactFo
"Content-Type": "application/json",
Accept: "application/json",
},
agent: "cors", // Ensure proper CORS handling
mode: "cors", // Ensure proper CORS handling
body: JSON.stringify(data),
})

View file

@ -402,7 +402,7 @@ export function UseExamplesSection({ agentTitle = false }: { agentTitle?: boolea
{/* Mobile: Vertical Staggered List */}
<div className="md:hidden flex flex-col gap-2 px-2 pb-12 max-w-md mx-auto">
<AnimatePresence agent="popLayout">
<AnimatePresence mode="popLayout">
{positionedItems.slice(0, showAllMobile ? undefined : 8).map((item, index) => (
<motion.div
key={item.use} // Use a unique key for proper animation tracking