DotColor Working Fine

master
Pedram Keshavarzi 3 years ago
parent 60624da2a2
commit b6790d0e04
  1. 6
      src/components/Calendar/CalendarComponents/components/DaysList.js
  2. 3
      src/components/Calendar/index.js

@ -260,13 +260,15 @@ const DaysList = ({
const specialDate = (sDay, sMonth, sYear) => { const specialDate = (sDay, sMonth, sYear) => {
return events.map((e) => { return events.map((e) => {
if (sDay == e.day && sMonth == e.month && sYear == e.year) { if (sDay == e.day && sMonth == e.month && sYear == e.year) {
return '.'; return <span key={'dot' + e.id} style={{
color: e.dotColor
}}>.</span>;
} }
}) })
}; };
const showEventDescription = (sDay, sMonth, sYear) => { const showEventDescription = (sDay, sMonth, sYear) => {
return events.map((e) => { return events.map((e) => {

@ -54,7 +54,8 @@ const eventsList = [
categoryId: 1, categoryId: 1,
year: 1400, year: 1400,
month: 10, month: 10,
day: 3 day: 3,
dotColor: 'blue'
}, },
{ {
id: 4, id: 4,

Loading…
Cancel
Save