11import { FC } from 'react'
2- import classNames from 'classnames'
32
4- import { UserProfile } from '../../../../../lib'
3+ import { Button , UserProfile } from '../../../../../lib'
54import { StickySidebar } from '../../../learn-lib'
6- import { EnrollmentForm } from '../enrollment-form'
75
86import styles from './EnrollmentSidebar.module.scss'
97
@@ -20,18 +18,17 @@ const EnrollmentSidebar: FC<EnrollmentSidebarProps> = (props: EnrollmentSidebarP
2018 < strong className = 'overline' > Total payment</ strong >
2119 </ div >
2220 < hr />
23- < div className = { classNames ( 'body-ultra-small-bold' , styles . formTitle ) } >
24- Contact Information
25- </ div >
2621 < div className = { styles . form } >
27- < EnrollmentForm profile = { props . profile } onSubmit = { props . onEnroll } >
28- < div className = { styles . noPaymentBanner } >
29- < h3 className = 'details' > No payment required</ h3 >
30- < div className = 'body-medium' >
31- Enroll until March 31 with no cost.
32- </ div >
22+ < div className = { styles . noPaymentBanner } >
23+ < h3 className = 'details' > No payment required</ h3 >
24+ < div className = 'body-medium' >
25+ Enroll until April 30 with no cost.
3326 </ div >
34- </ EnrollmentForm >
27+ </ div >
28+ < Button buttonStyle = 'primary' onClick = { props . onEnroll } label = 'Enroll Now' size = 'lg' />
29+ { /* TODO: this form will probably be re-used when we add actuall payments, leaving this here for now */ }
30+ { /* <EnrollmentForm profile={props.profile} onSubmit={props.onEnroll}>
31+ </EnrollmentForm> */ }
3532 </ div >
3633 </ StickySidebar >
3734)
0 commit comments