37 | You are entitled to a refund in the case of the purchased course not 38 | being assigned to you within the expiration date from your date of 39 | purchase or if you have paid twice for the same course. Under any 40 | other circumstance, we will not consider any requests for refund as 41 | this is a digital course purchase. 42 |
43 |23 | {error.message || 'An unexpected error occurred'} 24 |
25 | 26 |13 | Oops! The page you're looking for doesn't exist. 14 |
15 | 18 |Loading...
; 38 | } 39 | return ; 44 | }; 45 | -------------------------------------------------------------------------------- /src/components/CertificateVerify.tsx: -------------------------------------------------------------------------------- 1 | 'use client'; 2 | 3 | import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; 4 | import { Certificate, Course, User } from '@prisma/client'; 5 | import { useGenerateCertificate } from '@/hooks/useCertGen'; 6 | 7 | export const CertificateVerify = ({ 8 | certificate, 9 | }: { 10 | certificate: Certificate & { user: User; course: Course }; 11 | }) => { 12 | const { certificateImageUrl } = useGenerateCertificate({ 13 | certificateDetails: { 14 | certificateId: certificate.id, 15 | //@ts-ignore 16 | course: certificate.course, 17 | certificateSlug: certificate.slug, 18 | }, 19 | userName: certificate.user.name as string, 20 | }); 21 | 22 | return ( 23 |28 |33 |{code}
29 |30 |32 |31 |
44 | Please check your internet connection 45 |
46 |