File tree Expand file tree Collapse file tree
front/src/pods/trainer/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,11 +20,13 @@ export const HeaderComponent: React.FC<Props> = props => {
2020 < CopyFieldComponent
2121 labelName = "Trainer Link"
2222 inputId = "trainer-link"
23+ className = { innerClasses . trainerBackgroundColor }
2324 urlLink = { currentTrainerUrl ?? '' }
2425 />
2526 < CopyFieldComponent
2627 labelName = "Students Link"
2728 inputId = "student-link"
29+ className = { innerClasses . studentBackgroundColor }
2830 urlLink = { currentStudentUrl ?? '' }
2931 />
3032 </ div >
@@ -37,10 +39,11 @@ interface CopyFieldProps {
3739 labelName : string ;
3840 inputId : string ;
3941 urlLink : string ;
42+ className ?: string ;
4043}
4144
4245export const CopyFieldComponent : React . FC < CopyFieldProps > = props => {
43- const { labelName, inputId, urlLink } = props ;
46+ const { labelName, inputId, urlLink, className } = props ;
4447
4548 const [ open , setOpen ] = React . useState ( true ) ;
4649
@@ -69,7 +72,7 @@ export const CopyFieldComponent: React.FC<CopyFieldProps> = props => {
6972 < input
7073 id = { inputId }
7174 type = "text"
72- className = { innerClasses . input }
75+ className = { cx ( innerClasses . input , className ) }
7376 value = { urlLink }
7477 readOnly
7578 aria-readonly
Original file line number Diff line number Diff line change @@ -67,6 +67,14 @@ export const icon = css`
6767 font-size : 1.875rem ;
6868` ;
6969
70+ export const trainerBackgroundColor = css `
71+ background-color : # F0A0A0 ;
72+ ` ;
73+
74+ export const studentBackgroundColor = css `
75+ background-color : # 62A39B ;
76+ ` ;
77+
7078export const button = css `
7179 width : ${ spacing ( 7.375 ) } ;
7280 height : ${ spacing ( 7.375 ) } ;
You can’t perform that action at this time.
0 commit comments