Rating: {movie.rating_code}
+
+ Date:{' '}
+ {new Date(movie.show_time).toLocaleDateString(undefined, {
+ year: 'numeric',
+ month: 'short',
+ day: 'numeric'
+ })}
+
Watch Trailer
@@ -73,7 +81,7 @@ const RunningMovieList: React.FC<{
const { data, loading } = useRequest(
async () =>
Backend.movie.v1MoviesList({ running: true, search, category, showTime }),
- { refreshDeps: [search, category], debounceWait: 200 }
+ { refreshDeps: [search, category, showTime], debounceWait: 200 }
)
return (
!loading && (data?.data.data ? : null)