Skip to content

Commit 21f577d

Browse files
authored
Merge pull request #16 from teacoder-team/dev
chore: minor fixes
2 parents c4a1059 + 95004b0 commit 21f577d

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

src/components/course/course-actions.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ export function CourseActions({ course }: CourseActionsProps) {
2929
})
3030

3131
const handleDownload = async () => {
32-
if (!isAuthorized || !user?.isPremium)
33-
return router.push(ROUTES.PREMIUM)
32+
// if (!isAuthorized || !user?.isPremium)
33+
// return router.push(ROUTES.PREMIUM)
34+
35+
if (!isAuthorized) return router.push('/auth/login')
3436

3537
try {
3638
const { url } = await generate(course.id)

src/components/premium/faq.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
const faqs = [
1313
{
1414
question: 'Как можно оплатить подписку?',
15-
answer: 'Оплата возможна при помощи банковских карт РФ, кошелька YooMoney и СБП.'
15+
answer: 'Оплата возможна при помощи банковских карт РФ и СБП.'
1616
},
1717
{
1818
question: 'Можно ли оплатить подписку за пределами РФ?',

src/components/premium/premium.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export function Premium() {
108108
<CardContent className='flex flex-col items-center gap-6'>
109109
<div className='text-center'>
110110
<span className='text-5xl font-extrabold text-foreground'>
111-
299&#8381;
111+
349&#8381;
112112
</span>
113113
<span className='ml-1 text-lg text-neutral-500 dark:text-neutral-400'>
114114
/ месяц
@@ -174,8 +174,8 @@ export function Premium() {
174174
variant='primary'
175175
size='lg'
176176
className='flex-1'
177-
disabled={isPending}
178-
// disabled
177+
// disabled={isPending}
178+
disabled
179179
>
180180
Продолжить
181181
</Button>

0 commit comments

Comments
 (0)