@opexa/portal-components 0.0.425 → 0.0.426
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -72,7 +72,7 @@ export function DailyCheckInQuest(props) {
|
|
|
72
72
|
minDecimalPlaces: 0,
|
|
73
73
|
maxDecimalPlaces: 0,
|
|
74
74
|
})}`) : done ? (_jsx(CheckIcon, { className: "size-4" })) : (renderUncompletedIcon());
|
|
75
|
-
return (_jsx("div", { className: twMerge('flex items-center justify-center', done ? 'text-brand-400' : 'text-text-secondary-700', classNames?.rewardContainer), children: _jsx("p", { children: reward }) }, item.day));
|
|
75
|
+
return (_jsx("div", { className: twMerge('flex items-center justify-center', done ? 'text-brand-400' : 'text-text-secondary-700', classNames?.rewardContainer), children: _jsx("p", { children: status === 'FAILED' && !done ? (_jsx(XIcon, { className: "size-4 text-text-secondary-700" })) : (reward) }) }, item.day));
|
|
76
76
|
}) }), _jsx("div", { className: twMerge('h-2 w-full overflow-hidden rounded-full bg-bg-primary', classNames?.progressBarContainer), children: _jsx("div", { className: twMerge('h-full rounded-full bg-utility-brand-600 transition-all duration-300', classNames?.progressBar), style: { width: `${progressPercentage}%` } }) }), _jsx("div", { className: "grid grid-cols-7 place-items-center", children: dailyCheckedInData.map((item) => (_jsxs("div", { className: twMerge('group relative size-fit text-text-secondary-700 ui-active:text-brand-400', classNames?.calendarIconContainer), "data-active": dataAttr(item.day <= (checkInStreak ?? 0)), children: [_jsx(CalendarIcon, { className: twMerge('h-4.5 w-auto', classNames?.calendarIcon) }), _jsx("p", { className: twMerge('-translate-x-1/2 -translate-y-1/2 absolute top-1/2 left-1/2 text-2xs leading-none', classNames?.calendarDayText), children: item.day })] }, item.day))) })] }), _jsx(Button, { onClick: () => checkInDailyQuestMutation.mutate(id), className: twMerge('disabled:bg-bg-primary disabled:text-text-disabled', classNames?.checkInButton), disabled: status === 'COMPLETED' ||
|
|
77
77
|
status === 'FAILED' ||
|
|
78
78
|
remainingTime.expired ||
|