locked content state for unauthorized course lesson

This commit is contained in:
austinkelsay 2025-05-13 11:22:26 -05:00
parent 6b35da2333
commit 014d438414
No known key found for this signature in database
GPG Key ID: 5A763922E5BA08EE

View File

@ -247,7 +247,16 @@ const Course = () => {
{/* Content tab content */}
<div className={`${activeTab === 'content' ? 'block' : 'hidden'}`}>
{isDecrypting || decryptionLoading ? (
{!isAuthorized ? (
<div className="w-full py-12 bg-gray-800 rounded-lg flex flex-col items-center justify-center">
<div className="mx-auto py-auto z-10">
<i className="pi pi-lock text-[100px] text-red-500"></i>
</div>
<p className="text-center text-xl text-red-500 z-10 mt-4">
This content is paid and needs to be purchased before viewing.
</p>
</div>
) : isDecrypting || decryptionLoading ? (
<div className="w-full py-12 bg-gray-800 rounded-lg flex items-center justify-center">
<div className="text-center">
<ProgressSpinner style={{ width: '50px', height: '50px' }} />