Skip to content

Commit d27ac46

Browse files
committed
add role on student
1 parent 8fabf24 commit d27ac46

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

‎front/src/pods/student/student.component.tsx‎

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,29 +16,39 @@ interface Props {
1616
export const StudentComponent: React.FC<Props> = props => {
1717
const { room, log } = props;
1818

19-
const {isAutoScrollEnabled, setIsAutoScrollEnabled, textAreaRef, doAutoScroll} = useAutoScroll();
19+
const {
20+
isAutoScrollEnabled,
21+
setIsAutoScrollEnabled,
22+
textAreaRef,
23+
doAutoScroll,
24+
} = useAutoScroll();
2025

2126
React.useEffect(() => {
2227
doAutoScroll();
2328
}, [log]);
2429

2530
return (
26-
2731
<>
2832
<main className={innerClasses.root}>
29-
<Typography className={innerClasses.sessionName} variant="body1" role="heading">
33+
<Typography
34+
className={innerClasses.sessionName}
35+
variant="body1"
36+
role="heading"
37+
>
3038
Session name: {room ?? ''}
3139
</Typography>
3240
<label className={innerClasses.label} htmlFor="session">
3341
Content
3442
</label>
3543
<TextareaAutosize
44+
role="log"
3645
ref={textAreaRef}
3746
id="session"
3847
rowsMax={30}
3948
rowsMin={30}
4049
className={innerClasses.textarea}
4150
value={log ?? ''}
51+
readOnly={true}
4252
/>
4353
<FormControlLabel
4454
label="Disable AutoScroll"

0 commit comments

Comments
 (0)