Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0a1c4a7d2f |
@@ -14,7 +14,7 @@ export default function CalendarTable({ className }) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={`update-table w-full p-8 bg-white dark:bg-dark-white overflow-hidden rounded-2xl section-shadow min-h-[800px] ${
|
className={`update-table w-full p-8 bg-white dark:bg-dark-white overflow-hidden rounded-2xl section-shadow min-h-[620px] ${
|
||||||
className || ""
|
className || ""
|
||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -36,10 +36,10 @@ export default function AddEditReminder({ className }) {
|
|||||||
'member_id': localStorage.getItem('member_id'),
|
'member_id': localStorage.getItem('member_id'),
|
||||||
description: location.state?.reminder.description || '',
|
description: location.state?.reminder.description || '',
|
||||||
notes: location.state?.reminder.notes || '',
|
notes: location.state?.reminder.notes || '',
|
||||||
category: location.state?.reminder.code || '',
|
category: location.state?.reminder.category || '',
|
||||||
mode: location.state?.reminder.code || ''
|
mode: location.state?.reminder.mode || ''
|
||||||
})
|
})
|
||||||
|
// console.log(reminder)
|
||||||
const onReminderInputChange = ({target:{name,value}}) => { //function to run when user changes any input on the add reminder page
|
const onReminderInputChange = ({target:{name,value}}) => { //function to run when user changes any input on the add reminder page
|
||||||
setReminder(prev=>(
|
setReminder(prev=>(
|
||||||
{...prev, [name]:value}
|
{...prev, [name]:value}
|
||||||
@@ -267,7 +267,7 @@ export default function AddEditReminder({ className }) {
|
|||||||
className="w-[152px] h-[46px] flex justify-center items-center btn-gradient text-base rounded-full text-white"
|
className="w-[152px] h-[46px] flex justify-center items-center btn-gradient text-base rounded-full text-white"
|
||||||
onClick={handleAddReminder}
|
onClick={handleAddReminder}
|
||||||
>
|
>
|
||||||
{location.state?.reminder ? 'Edit' : 'Add Reminder'}
|
{location.state?.reminder ? 'Update' : 'Add Reminder'}
|
||||||
</button>
|
</button>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
+2
-9
@@ -684,7 +684,6 @@ TODO: Responsive ===========================
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
min-height: 23.2rem;
|
min-height: 23.2rem;
|
||||||
border-radius: 7px !important;
|
border-radius: 7px !important;
|
||||||
@apply border border-pink !important;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.dark .react-calendar{
|
.dark .react-calendar{
|
||||||
@@ -700,13 +699,9 @@ TODO: Responsive ===========================
|
|||||||
.react-calendar__navigation{
|
.react-calendar__navigation{
|
||||||
margin-top: 2px;
|
margin-top: 2px;
|
||||||
margin-inline: 2px;
|
margin-inline: 2px;
|
||||||
@apply text-pink !important;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.react-calendar__tile--active{color: #fff; font-weight: bold;
|
.react-calendar__tile--active{color: #fff; font-weight: bold; background-color: #006edc;}
|
||||||
/* background-color: #006edc; */
|
|
||||||
@apply bg-pink;
|
|
||||||
}
|
|
||||||
.dark .react-calendar__tile--active{color: #fff;}
|
.dark .react-calendar__tile--active{color: #fff;}
|
||||||
|
|
||||||
.react-calendar__navigation button:enabled:hover,
|
.react-calendar__navigation button:enabled:hover,
|
||||||
@@ -722,16 +717,14 @@ TODO: Responsive ===========================
|
|||||||
.react-calendar__month-view__weekdays__weekday abbr:where([title]){
|
.react-calendar__month-view__weekdays__weekday abbr:where([title]){
|
||||||
text-decoration: none !important;
|
text-decoration: none !important;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
@apply text-pink !important;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.react-calendar__tile{
|
.react-calendar__tile{
|
||||||
border: 1px solid #cfd7e3 !important;
|
border: 1px solid #cfd7e3 !important;
|
||||||
border-left: 0;
|
border-left: 0;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
height: 6.813rem !important;
|
height: 4.813rem !important;
|
||||||
transition: all 500ms;
|
transition: all 500ms;
|
||||||
/* @apply border border-pink !important; */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.dark .react-calendar__tile{background: #11131F;}
|
.dark .react-calendar__tile{background: #11131F;}
|
||||||
|
|||||||
Reference in New Issue
Block a user