diff --git a/src/components/SQLCourse/BuyButton.tsx b/src/components/SQLCourse/BuyButton.tsx index 7434ecce6..fab5b3486 100644 --- a/src/components/SQLCourse/BuyButton.tsx +++ b/src/components/SQLCourse/BuyButton.tsx @@ -1,10 +1,7 @@ import { useMutation, useQuery } from '@tanstack/react-query'; import { - ArrowRightIcon, - CheckIcon, - CopyIcon, - MousePointerClick, - Play, + ArrowRightIcon, MousePointerClick, + Play } from 'lucide-react'; import { useEffect, useState } from 'react'; import { cn } from '../../lib/classname'; @@ -24,7 +21,6 @@ import { useToast } from '../../hooks/use-toast'; import { httpPost } from '../../lib/query-http'; import { deleteUrlParam, getUrlParams } from '../../lib/browser'; import { VideoModal } from '../VideoModal'; -import { sqlCouponCode } from './CourseDiscountBanner'; import { useCopyText } from '../../hooks/use-copy-text'; export const SQL_COURSE_SLUG = 'sql'; @@ -218,31 +214,6 @@ export function BuyButton(props: BuyButtonProps) { setIsLoginPopupOpen(false)} /> ); - const mainCouponAlert = ( -
-
-
- - 🎁 30% OFF with code{' '} - - -
-
- ); - if (variant === 'main') { return (
@@ -254,8 +225,6 @@ export function BuyButton(props: BuyButtonProps) { /> )}
- {!isLoadingPricing && !isAlreadyEnrolled && mainCouponAlert} - - -
- ); -} diff --git a/src/components/SQLCourse/SQLCoursePage.tsx b/src/components/SQLCourse/SQLCoursePage.tsx index a7dc2bd36..10239e8e3 100644 --- a/src/components/SQLCourse/SQLCoursePage.tsx +++ b/src/components/SQLCourse/SQLCoursePage.tsx @@ -28,7 +28,6 @@ import { PlatformDemo } from './PlatformDemo'; import { ReviewsSection } from './ReviewsSection'; import { SectionHeader } from './SectionHeader'; import { Spotlight } from './Spotlight'; -import { CourseDiscountBanner } from './CourseDiscountBanner'; type ChapterData = { icon: React.ReactNode; @@ -245,7 +244,6 @@ export const sqlCourseChapters: ChapterData[] = [ export function SQLCoursePage() { return ( <> -
setIsLoginPopupOpen(false)} /> ); - const mainCouponAlert = ( -
-
-
- - 🎁 30% OFF with code{' '} - - -
-
- ); - if (variant === 'main') { return ( <> @@ -260,8 +228,6 @@ export function BuyButton(props: BuyButtonProps) { /> )}
- {!isLoadingPricing && !isAlreadyEnrolled && mainCouponAlert} -