Skip to content

Commit 760989e

Browse files
committed
cambio estilos input trainer y student header component
1 parent 85ce52f commit 760989e

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

front/src/pods/trainer/components/header.component.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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

4245
export 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

front/src/pods/trainer/components/header.styles.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,16 @@ export const icon = css`
6767
font-size: 1.875rem;
6868
`;
6969

70+
export const studentBackgroundColor = css`
71+
background-color: #EB5353;
72+
color: white;
73+
`;
74+
75+
export const trainerBackgroundColor = css`
76+
background-color: #006E60;
77+
color: white;
78+
`;
79+
7080
export const button = css`
7181
width: ${spacing(7.375)};
7282
height: ${spacing(7.375)};

0 commit comments

Comments
 (0)