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:
parent
99e25cec0f
commit
220b4bc257
@ -74,12 +74,12 @@ function CalendarEvent(props: CalendarEventProps) {
|
|||||||
|
|
||||||
const [isDetailsModalOpen, setIsDetailsModalOpen] = useState(false);
|
const [isDetailsModalOpen, setIsDetailsModalOpen] = useState(false);
|
||||||
|
|
||||||
const handleDetailsModalClose = useCallback(() => {
|
const handlePress = useCallback(() => {
|
||||||
setIsDetailsModalOpen(true);
|
setIsDetailsModalOpen(true);
|
||||||
onEventModalOpenToggle(true);
|
onEventModalOpenToggle(true);
|
||||||
}, [onEventModalOpenToggle]);
|
}, [onEventModalOpenToggle]);
|
||||||
|
|
||||||
const handlePress = useCallback(() => {
|
const handleDetailsModalClose = useCallback(() => {
|
||||||
setIsDetailsModalOpen(false);
|
setIsDetailsModalOpen(false);
|
||||||
onEventModalOpenToggle(false);
|
onEventModalOpenToggle(false);
|
||||||
}, [onEventModalOpenToggle]);
|
}, [onEventModalOpenToggle]);
|
||||||
|
Loading…
Reference in New Issue
Block a user