Fix compilation errors and resolve ESLint warnings across multiple components
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import React, { useState, useEffect } from "react";
|
||||
import { Stack, Box, Typography, Divider, Chip, Paper, alpha, CircularProgress, TextField, IconButton, Tooltip, Select, MenuItem, FormControl, InputLabel, Switch, FormControlLabel } from "@mui/material";
|
||||
import { Psychology as PsychologyIcon, Insights as InsightsIcon, Search as SearchIcon, Person as PersonIcon, AutoAwesome as AutoAwesomeIcon, Edit as EditIcon, Save as SaveIcon, Close as CloseIcon, Add as AddIcon, Delete as DeleteIcon, EditNote as EditNoteIcon } from "@mui/icons-material";
|
||||
import { Stack, Box, Typography, Divider, Chip, Paper, alpha, CircularProgress, TextField, IconButton, Select, MenuItem, FormControl, InputLabel, Switch, FormControlLabel } from "@mui/material";
|
||||
import { Psychology as PsychologyIcon, Insights as InsightsIcon, Search as SearchIcon, Person as PersonIcon, AutoAwesome as AutoAwesomeIcon, Edit as EditIcon, Save as SaveIcon, Close as CloseIcon, Add as AddIcon, EditNote as EditNoteIcon } from "@mui/icons-material";
|
||||
import { PodcastAnalysis, PodcastEstimate } from "./types";
|
||||
import { GlassyCard, glassyCardSx, SecondaryButton } from "./ui";
|
||||
import { Refresh as RefreshIcon } from "@mui/icons-material";
|
||||
@@ -69,7 +69,7 @@ export const AnalysisPanel: React.FC<AnalysisPanelProps> = ({
|
||||
if (analysis && !editedAnalysis) {
|
||||
setEditedAnalysis(JSON.parse(JSON.stringify(analysis)));
|
||||
}
|
||||
}, [analysis]);
|
||||
}, [analysis, editedAnalysis]);
|
||||
|
||||
const handleSave = () => {
|
||||
if (editedAnalysis && onUpdateAnalysis) {
|
||||
|
||||
@@ -121,7 +121,7 @@ export const AvatarAssetBrowser: React.FC<AvatarAssetBrowserProps> = ({ onSelect
|
||||
if (url.startsWith('blob:')) URL.revokeObjectURL(url);
|
||||
});
|
||||
};
|
||||
}, []);
|
||||
}, [imageBlobUrls]);
|
||||
|
||||
const handleLoadMore = () => {
|
||||
setLimit(prev => prev + 24);
|
||||
|
||||
@@ -200,7 +200,7 @@ export const SceneActionButtons: React.FC<SceneActionButtonsProps> = ({
|
||||
},
|
||||
}}
|
||||
>
|
||||
{/* Icon only */}
|
||||
{null}
|
||||
</PrimaryButton>
|
||||
)}
|
||||
|
||||
@@ -222,7 +222,7 @@ export const SceneActionButtons: React.FC<SceneActionButtonsProps> = ({
|
||||
},
|
||||
}}
|
||||
>
|
||||
{/* Icon only */}
|
||||
{null}
|
||||
</PrimaryButton>
|
||||
)}
|
||||
</Stack>
|
||||
|
||||
Reference in New Issue
Block a user