diff --git a/src/component/calendar/ExternalDraggable.jsx b/src/component/calendar/ExternalDraggable.jsx
index fff304d..9b84e69 100644
--- a/src/component/calendar/ExternalDraggable.jsx
+++ b/src/component/calendar/ExternalDraggable.jsx
@@ -1,9 +1,16 @@
import React, { useEffect, useRef } from "react";
import { Draggable } from "@fullcalendar/interaction";
-const ExternalDraggable = ({dummyEvents}) => {
+const ExternalDraggable = ({category}) => {
const eventContainerRef = useRef(null);
+ const events = [
+ {id: '1111', title: 'Family Vacation', color: 'fc-event-primary', start: new Date('2025-01-18')},
+ {id: '2222', title: 'Meeting In Office', color: 'fc-event-warning', start: new Date('2025-01-19')},
+ {id: '3333', title: 'Client Call', color: 'fc-event-danger', start: new Date('2025-01-22')},
+ {id: '4444', title: 'Interview', color: 'fc-event-success', start: new Date('2025-01-1')}
+]
+
useEffect(() => {
// Make the external events draggable
const draggable = new Draggable(eventContainerRef.current, {
@@ -21,11 +28,15 @@ const ExternalDraggable = ({dummyEvents}) => {
return (
- {dummyEvents.map((item, index) => (
-
- {item.title}
-
- ))}
+ {category && category.map((item, index) => {
+ let color = index % 4 === 0 ? 'fc-event-success' : index % 3 === 0 ? 'fc-event-danger' : index % 2 === 0 ? 'fc-event-warning' : 'fc-event-primary'
+ return (
+
+ {item.description}
+
+ )
+ }
+ )}
);
};
diff --git a/src/component/calendar/event-utils.js b/src/component/calendar/event-utils.js
index b4453d8..70f85e8 100644
--- a/src/component/calendar/event-utils.js
+++ b/src/component/calendar/event-utils.js
@@ -2,19 +2,19 @@ let eventGuid = 0;
let todayStr = new Date().toISOString().replace(/T.*$/, ''); // YYYY-MM-DD of today
export const INITIAL_EVENTS = [
- // {
- // id: createEventId(),
- // title: 'All-day event',
- // start: new Date('2025-01-19'),
- // end: new Date('2025-01-20'),
- // // color: 'blue'
- // },
- // {
- // id: createEventId(),
- // title: 'Timed event',
- // start: todayStr + 'T12:00:00',
- // // color: 'red'
- // },
+ {
+ id: createEventId(),
+ title: 'All-day event',
+ start: new Date('2025-01-19'),
+ end: new Date('2025-01-20'),
+ // color: 'blue'
+ },
+ {
+ id: createEventId(),
+ title: 'Timed event',
+ start: todayStr + 'T12:00:00',
+ // color: 'red'
+ },
];
export function createEventId() {
diff --git a/src/component/layout/layoutcom/UserHeader.jsx b/src/component/layout/layoutcom/UserHeader.jsx
index 88d210c..da6df48 100644
--- a/src/component/layout/layoutcom/UserHeader.jsx
+++ b/src/component/layout/layoutcom/UserHeader.jsx
@@ -89,7 +89,7 @@ export default function UserHeader(){
Inbox
6
-
+
Settings
diff --git a/src/css/style.scss b/src/css/style.scss
index 39f9815..93b5a74 100644
--- a/src/css/style.scss
+++ b/src/css/style.scss
@@ -138,14 +138,28 @@ $event-padding: 10px;
.fc-today-button.fc-button,
.fc-timeGridWeek-button.fc-button-active, .fc-timeGridDay-button.fc-button-active, .fc-dayGridMonth-button.fc-button-active{
- color: #fff!important;
+ color: #fff !important;
border: none;
- background-color: #8E54E9!important;
+ background-color: #8E54E9 !important;
text-transform: capitalize !important;
}
+.fc-h-event,
.fc-event.fc-event-draggable.fc-event-start.fc-event-end.fc-daygrid-event,
.fc-event.fc-event-draggable.fc-event-start.fc-event-end.fc-daygrid-event{
padding: 10px 2px !important;
+ background-color: #3788d8 !important;
+ color: white;
}
+
+.fc-theme-standard .fc-popover{
+ overflow-y: auto !important;
+ // height: calc(100% - 50px);
+}
+
+.fc .fc-more-popover .fc-popover-body {
+ overflow-y: auto;
+ height: 100px !important;
+}
+
/* END OF CALENDER STYLE */
\ No newline at end of file
diff --git a/src/services/queryKeys.js b/src/services/queryKeys.js
index 374cebe..0de8804 100644
--- a/src/services/queryKeys.js
+++ b/src/services/queryKeys.js
@@ -4,7 +4,8 @@ const queryKeys = {
recentAction: ['recent-action'],
product: ['product-data'],
product_url: ['product_url'],
- myproduct_provision: ['myproduct_provision']
+ myproduct_provision: ['myproduct_provision'],
+ calendar_events: ['calendar_events']
}
export default queryKeys
\ No newline at end of file
diff --git a/src/services/services.js b/src/services/services.js
index c843224..7cfbdb1 100644
--- a/src/services/services.js
+++ b/src/services/services.js
@@ -101,6 +101,11 @@ export const topBar = () => {
return getAuxEnd(`/panel/account/bar`)
}
+// FUNCTION TO GET CALENDAR EVENTS
+export const getCalendarEvents = () => {
+ return getAuxEnd(`/panel/account/calendar`)
+}
+
// FUNCTION TO GET DASHBOARD RECENT ACTIONS SECTION
export const recentActions = () => {
return getAuxEnd(`/panel/account/actions`)