diff --git a/app/assets/javascripts/components/overview/admin_quick_actions.jsx b/app/assets/javascripts/components/overview/admin_quick_actions.jsx index 548c7d9cf0..6648d8b4f3 100644 --- a/app/assets/javascripts/components/overview/admin_quick_actions.jsx +++ b/app/assets/javascripts/components/overview/admin_quick_actions.jsx @@ -1,10 +1,12 @@ import React from 'react'; +import { useDispatch } from 'react-redux'; import PropTypes from 'prop-types'; import GreetStudentsButton from './greet_students_button.jsx'; import { format, toDate, parseISO } from 'date-fns'; import { getUTCDateString } from '../../utils/date_utils.js'; import NotesPanel from '../../components/admin_notes/notes_panel.jsx'; import AdminStatusPanel from '../../components/overview/admin_status_panel.jsx'; +import { updateCourse } from '@actions/course_actions.js'; // Helper Functions const DetailsText = ({ flags }) => ( @@ -40,6 +42,8 @@ export const AdminQuickActions = ({ course, current_user, persistCourse, greetSt } : {}; + const dispatch = useDispatch(); + return (