From fce6ab28eb7bb0595463b45a311b361ef93455a7 Mon Sep 17 00:00:00 2001 From: Rachel Dauns Date: Tue, 23 Jan 2024 10:20:29 -0500 Subject: [PATCH] imports updated for notification component --- .../obojobo-repository/shared/components/notification.jsx | 6 +++--- .../obojobo-repository/shared/components/repository-nav.jsx | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/app/obojobo-repository/shared/components/notification.jsx b/packages/app/obojobo-repository/shared/components/notification.jsx index 5561ae278..d09968e31 100644 --- a/packages/app/obojobo-repository/shared/components/notification.jsx +++ b/packages/app/obojobo-repository/shared/components/notification.jsx @@ -1,5 +1,5 @@ -import React from 'react' -import './notification.scss' +const React = require('react') +require('./notification.scss') const Notification = () => { const [notifications, setNotifications] = React.useState([]) @@ -63,4 +63,4 @@ const Notification = () => { } } -export default Notification +module.exports = Notification diff --git a/packages/app/obojobo-repository/shared/components/repository-nav.jsx b/packages/app/obojobo-repository/shared/components/repository-nav.jsx index 4775d8388..257c50f85 100644 --- a/packages/app/obojobo-repository/shared/components/repository-nav.jsx +++ b/packages/app/obojobo-repository/shared/components/repository-nav.jsx @@ -2,8 +2,7 @@ require('./repository-nav.scss') const React = require('react') const Avatar = require('./avatar') -const { check } = require('express-validator') -const Notification = require('./notification.jsx').default +const Notification = require('./notification') const RepositoryNav = props => { let timeOutId