replace view plan to dialog - client side

Signed-off-by: Kenneth Obsequio <k80308392@gmail.com>
This commit is contained in:
2026-08-31 17:14:13 +08:00
parent 1d2c6f1ad8
commit 7413a296fb
5 changed files with 177 additions and 301 deletions
@@ -123,9 +123,7 @@ export function resolveNotificationLink(type, data) {
: null;
case "tier_expired":
return data.planId
? { label: "Renew plan", go: (navigate) => navigate(`/subscriptions/view/${data.planId}`) }
: { label: "View plans", go: (navigate) => navigate("/subscriptions") };
return { label: "View plans", go: (navigate) => navigate("/subscriptions") };
case "announcement":
if (data.groupId && data.groupCode) {
@@ -135,7 +133,7 @@ export function resolveNotificationLink(type, data) {
return { label: "Go to course", go: (navigate) => goToCourse(navigate, data.targetId) };
}
if (data.targetType === "tier_plan" && data.targetId) {
return { label: "View plan", go: (navigate) => navigate(`/subscriptions/view/${data.targetId}`) };
return { label: "View plan", go: (navigate) => navigate("/subscriptions") };
}
if (data.targetType === "task_list" && data.groupId && data.targetId) {
return { label: "View task list", go: (navigate) => navigate(`/group/${data.groupId}/view/${data.targetId}`) };