replace view plan to dialog - client side
Signed-off-by: Kenneth Obsequio <k80308392@gmail.com>
This commit is contained in:
@@ -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}`) };
|
||||
|
||||
Reference in New Issue
Block a user