1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-22 07:43:01 +00: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]);