fix: add 'use client' directive to MediaLibrary and MediaUploader components
These components use useState/useRef hooks but lacked the Next.js 'use client' directive, causing the Next.js app build to fail with Server Component errors. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
592b2d5ec0
commit
bc77504b35
@ -1,3 +1,5 @@
|
|||||||
|
'use client';
|
||||||
|
|
||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import { Trash2, Image, Video, ExternalLink } from 'lucide-react';
|
import { Trash2, Image, Video, ExternalLink } from 'lucide-react';
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
'use client';
|
||||||
|
|
||||||
import { useCallback, useState, useRef } from 'react';
|
import { useCallback, useState, useRef } from 'react';
|
||||||
import { Upload, Loader2, Check } from 'lucide-react';
|
import { Upload, Loader2, Check } from 'lucide-react';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user