From 014d43841459e76f70e79f19e69df7ebb65bf6f9 Mon Sep 17 00:00:00 2001 From: austinkelsay Date: Tue, 13 May 2025 11:22:26 -0500 Subject: [PATCH] locked content state for unauthorized course lesson --- src/pages/course/[slug]/index.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/pages/course/[slug]/index.js b/src/pages/course/[slug]/index.js index 3fca943..36b4229 100644 --- a/src/pages/course/[slug]/index.js +++ b/src/pages/course/[slug]/index.js @@ -247,7 +247,16 @@ const Course = () => { {/* Content tab content */}
- {isDecrypting || decryptionLoading ? ( + {!isAuthorized ? ( +
+
+ +
+

+ This content is paid and needs to be purchased before viewing. +

+
+ ) : isDecrypting || decryptionLoading ? (