Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0a1c4a7d2f |
@@ -17,17 +17,17 @@ export default function TrackItemCard({ datas, hidden = false }) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
return (
|
return (
|
||||||
<div className="card-style-one flex flex-col justify-between w-full h-[190px] bg-white dark:bg-dark-white p-3 rounded-2xl cursor-pointer" onClick={()=>{navigate(`/track-action/${datas.widget}`, { replace: true })}}>
|
<div className="card-style-one flex flex-col justify-between w-full h-[220px] bg-white dark:bg-dark-white p-3 pb rounded-2xl cursor-pointer" onClick={()=>{navigate(`/track-action/${datas.widget}`, { replace: true })}}>
|
||||||
<div className="content">
|
<div className="content">
|
||||||
{/* thumbnail */}
|
{/* thumbnail */}
|
||||||
<div className="w-full h-32">
|
<div className="w-full h-40">
|
||||||
{/* thumbnail image */}
|
{/* thumbnail image */}
|
||||||
<div
|
<div
|
||||||
className="thumbnail w-full h-full rounded-xl overflow-hidden px-4 pt-4"
|
className="thumbnail w-full h-full rounded-xl overflow-hidden px-4 pt-4"
|
||||||
style={{
|
style={{
|
||||||
background: `url(${localImgLoad(
|
background: `url(${localImgLoad(
|
||||||
`images/${datas.thumbnil}`
|
`images/${datas.thumbnil}`
|
||||||
)}) 0% 0% / 100% no-repeat`,
|
)}) 0% 0% / cover no-repeat`,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div className="product-options flex justify-between relative">
|
<div className="product-options flex justify-between relative">
|
||||||
@@ -76,12 +76,12 @@ export default function TrackItemCard({ datas, hidden = false }) {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{/* user */}
|
{/* user */}
|
||||||
<div className="user w-full text-center">
|
<div className="user w-full text-center mt-3">
|
||||||
|
|
||||||
<p className="text-sm text-thin-light-gray dark:text-white">
|
<p className="text-sm text-thin-light-gray dark:text-white">
|
||||||
<Link
|
<Link
|
||||||
to={`/track-action/${datas.widget}`}
|
to={`/track-action/${datas.widget}`}
|
||||||
className="text-xl font-bold text-dark-gray dark:text-white capitalize line-clamp-1"
|
className="text-xl font-bold text-dark-gray dark:text-white mb-2 capitalize line-clamp-1"
|
||||||
>
|
>
|
||||||
{datas.title}
|
{datas.title}
|
||||||
</Link>
|
</Link>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user