fix check subscription
This commit is contained in:
@@ -182,6 +182,7 @@ def enroll_now(enrollment: Enrollment, context: Context):
|
||||
),
|
||||
cond_expr='attribute_exists(sk)',
|
||||
exc_cls=SubscriptionRequiredError,
|
||||
table_name=USER_TABLE,
|
||||
)
|
||||
transact.put(
|
||||
item={
|
||||
@@ -289,6 +290,7 @@ def enroll_later(enrollment: Enrollment, context: Context):
|
||||
),
|
||||
cond_expr='attribute_exists(sk)',
|
||||
exc_cls=SubscriptionRequiredError,
|
||||
table_name=USER_TABLE,
|
||||
)
|
||||
transact.put(
|
||||
item={
|
||||
|
||||
@@ -119,6 +119,20 @@ export default function Component({
|
||||
className="rounded-full"
|
||||
>
|
||||
<PlusIcon />
|
||||
|
||||
<span
|
||||
className="
|
||||
transition-all
|
||||
duration-200
|
||||
ease-out
|
||||
hidden
|
||||
group-hover:block
|
||||
"
|
||||
>
|
||||
<span className="overflow-hidden whitespace-nowrap">
|
||||
Matricular-se
|
||||
</span>
|
||||
</span>
|
||||
</Button>
|
||||
</ItemActions>
|
||||
</Item>
|
||||
|
||||
Reference in New Issue
Block a user