Push route state on generation finish (#492)

This commit is contained in:
Jeremy 2024-11-05 23:25:26 +03:00 committed by GitHub
parent 5d6d0ed664
commit f45bfac32b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View file

@ -2,7 +2,6 @@
import { Message } from 'ai';
import cx from 'classnames';
import { motion } from 'framer-motion';
import { Sparkles } from 'lucide-react';
import { Dispatch, SetStateAction } from 'react';
@ -31,10 +30,8 @@ export const PreviewMessage = ({
isLoading: boolean;
}) => {
return (
<motion.div
<div
className="w-full mx-auto max-w-3xl px-4 group/message "
initial={{ y: 5, opacity: 0 }}
animate={{ y: 0, opacity: 1 }}
data-role={message.role}
>
<div
@ -145,6 +142,6 @@ export const PreviewMessage = ({
/>
</div>
</div>
</motion.div>
</div>
);
};