diff --git a/public/index.html b/public/index.html index 4b27b1f..9847191 100755 --- a/public/index.html +++ b/public/index.html @@ -1,17 +1,148 @@ - + - Account | <%= process.env.SITE_NAME %> - - - - <% if (process.env.OPTIMIZELY_PROJECT_ID) { %> - - <% } %> + Account | <%= process.env.SITE_NAME %> + + + + <% if (process.env.OPTIMIZELY_PROJECT_ID) { %> + + <% } %> + + +
diff --git a/src/notification-preferences/FeedbackWrapper.jsx b/src/notification-preferences/FeedbackWrapper.jsx new file mode 100644 index 0000000..44e6795 --- /dev/null +++ b/src/notification-preferences/FeedbackWrapper.jsx @@ -0,0 +1,13 @@ +/* eslint-disable no-undef */ +import { useEffect } from 'react'; +import { logError } from '@edx/frontend-platform/logging'; + +export default function useFeedbackWrapper() { + useEffect(() => { + try { + window.usabilla_live = lightningjs.require('usabilla_live', '//w.usabilla.com/2655de034958.js'); + } catch (err) { + logError(err); + } + }, []); +} diff --git a/src/notification-preferences/NotificationPreferences.jsx b/src/notification-preferences/NotificationPreferences.jsx index c558fdc..869ed67 100644 --- a/src/notification-preferences/NotificationPreferences.jsx +++ b/src/notification-preferences/NotificationPreferences.jsx @@ -22,8 +22,10 @@ import { SUCCESS_STATUS, } from '../constants'; import { NotFoundPage } from '../account-settings'; +import useFeedbackWrapper from './FeedbackWrapper'; const NotificationPreferences = () => { + useFeedbackWrapper(); const { courseId } = useParams(); const dispatch = useDispatch(); const intl = useIntl();