Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit cb5ea98b authored by I Gede Aditya Premana Putra's avatar I Gede Aditya Premana Putra
Browse files

Remove test notification

parent f9e9a351
Branches
No related tags found
No related merge requests found
......@@ -10,16 +10,7 @@ import { Row, Col } from 'react-bootstrap';
const NotificationBell = React.memo(({ user, isAuthenticated, load_user }) => {
const [showNotificationBox, setShowNotificationBox] = useState(false);
const [itemList, setItemList] = useState([
{
name: "Test Notification 1",
notification_time: new Date()
},
{
name: "Test Notification 2",
notification_time: new Date()
}
]);
const [itemList, setItemList] = useState([]);
var [newNotification, setNewNotification] = useState(0);
const messageCallBack = function (message) {
......@@ -90,12 +81,6 @@ const NotificationBell = React.memo(({ user, isAuthenticated, load_user }) => {
return `${diff} second${diff > 1 ? "s" : ""} ago`
}
// const getUser = async () => {
// let res = await axios.get(`${process.env.REACT_APP_BACKEND_API_URL}/api/create-user/`, config)
// return res
// }
// // Create web socket
// console.log(getUser().then((result) => { createWebSocket(result.data[0].username); }))
function handleClickNotif() {
setNewNotification(0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment