1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-23 02:05:27 +02:00

Fixed: Opening episode info modal on calendar event click

This commit is contained in:
Bogdan 2024-12-15 13:58:00 +02:00 committed by Mark McDowall
parent 99e25cec0f
commit 220b4bc257

View File

@ -74,12 +74,12 @@ function CalendarEvent(props: CalendarEventProps) {
const [isDetailsModalOpen, setIsDetailsModalOpen] = useState(false);
const handleDetailsModalClose = useCallback(() => {
const handlePress = useCallback(() => {
setIsDetailsModalOpen(true);
onEventModalOpenToggle(true);
}, [onEventModalOpenToggle]);
const handlePress = useCallback(() => {
const handleDetailsModalClose = useCallback(() => {
setIsDetailsModalOpen(false);
onEventModalOpenToggle(false);
}, [onEventModalOpenToggle]);