Fixed critical bug where ImportDialog was always rendered regardless of the open prop value. The component interface didn't match the actual implementation, causing it to appear on page load. Changes: - Added `open` prop to ImportDialogProps interface - Added early return when `open` is false to prevent rendering - Renamed `onCancel` to `onClose` to match Track component usage - Made fileName, sampleRate, and channels optional props - Dialog now only appears when explicitly opened by user action This fixes the issue where the dialog appeared immediately on page load when loading a saved project. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
5.5 KiB
5.5 KiB