dependencies: Update React, React DOM, and related packages to version 19; upgrade lucide-react and next-themes

This commit is contained in:
Willie Zutz 2025-07-12 16:12:50 -06:00
parent de2459a624
commit e47307d1d4
4 changed files with 83 additions and 113 deletions

View file

@ -23,7 +23,7 @@ const Attach = ({
optimizationMode: string;
}) => {
const [loading, setLoading] = useState(false);
const fileInputRef = useRef<any>();
const fileInputRef = useRef<HTMLInputElement>(null);
const isSpeedMode = optimizationMode === 'speed';
const isDisabled = isSpeedMode;
@ -144,7 +144,7 @@ const Attach = ({
<div className="flex flex-row items-center space-x-4">
<button
type="button"
onClick={() => !isDisabled && fileInputRef.current.click()}
onClick={() => !isDisabled && fileInputRef.current?.click()}
disabled={isDisabled}
className={cn(
'flex flex-row items-center space-x-1 transition duration-200',
@ -222,7 +222,7 @@ const Attach = ({
<div className="relative group">
<button
type="button"
onClick={() => !isDisabled && fileInputRef.current.click()}
onClick={() => !isDisabled && fileInputRef.current?.click()}
disabled={isDisabled}
className={cn(
'flex flex-row items-center space-x-1 rounded-xl transition duration-200 p-2',