mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-13 15:53:18 +02:00
feat: sync play queue for navidrome/subsonic (#1335)
--------- Co-authored-by: jeffvli <jeffvictorli@gmail.com>
This commit is contained in:
@@ -12,7 +12,7 @@ interface DragDropZoneProps {
|
||||
}
|
||||
|
||||
export const DragDropZone = ({ icon, onItemSelected, validateItem }: DragDropZoneProps) => {
|
||||
const zoneFileInput = useRef<HTMLInputElement | null>();
|
||||
const zoneFileInput = useRef<HTMLInputElement | null>(null);
|
||||
const [error, setError] = useState<string>('');
|
||||
|
||||
const processItem = useCallback(
|
||||
@@ -122,7 +122,9 @@ export const DragDropZone = ({ icon, onItemSelected, validateItem }: DragDropZon
|
||||
) : null}
|
||||
<input
|
||||
onChange={onZoneInputChange}
|
||||
ref={(self) => (zoneFileInput.current = self)}
|
||||
ref={(self) => {
|
||||
zoneFileInput.current = self;
|
||||
}}
|
||||
style={{ display: 'none' }}
|
||||
type="file"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user