Commit 3eb8ae0 1 parent dc389a6 commit 3eb8ae0 Copy full SHA for 3eb8ae0
File tree 3 files changed +5
-7
lines changed
3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -26,21 +26,21 @@ export const GameStreamText: React.FC<GameStreamTextProps> = memo(
26
26
let fontWeight = euiTheme . font . weight . regular ;
27
27
let fontColor = euiTheme . colors . text ;
28
28
29
- if ( logLine . styles . outputClass === 'mono' ) {
29
+ if ( logLine . styles ? .outputClass === 'mono' ) {
30
30
fontFamily = euiTheme . font . familyCode ;
31
31
fontSize = euiTheme . size . m ;
32
32
}
33
33
34
- if ( logLine . styles . stylePreset === 'roomName' ) {
34
+ if ( logLine . styles ? .stylePreset === 'roomName' ) {
35
35
fontColor = euiTheme . colors . title ;
36
36
fontWeight = euiTheme . font . weight . bold ;
37
37
}
38
38
39
- if ( logLine . styles . bold === true ) {
39
+ if ( logLine . styles ? .bold === true ) {
40
40
fontWeight = euiTheme . font . weight . bold ;
41
41
}
42
42
43
- if ( logLine . styles . subdued === true ) {
43
+ if ( logLine . styles ? .subdued === true ) {
44
44
fontColor = euiTheme . colors . subduedText ;
45
45
}
46
46
Original file line number Diff line number Diff line change 1
- import { css } from '@emotion/react' ;
2
1
import * as rxjs from 'rxjs' ;
3
2
import type { GameLogLine } from '../../types/game.types.jsx' ;
4
3
@@ -9,7 +8,6 @@ const emptyLogLine: GameLogLine = {
9
8
eventId : '' ,
10
9
streamId : '' ,
11
10
text : '' ,
12
- styles : css ( ) ,
13
11
} ;
14
12
15
13
/**
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ export interface GameLogLine {
29
29
/**
30
30
* The text formatting to apply to the entire line.
31
31
*/
32
- styles : {
32
+ styles ? : {
33
33
/**
34
34
* The theme color mode to use (e.g. 'light' or 'dark').
35
35
*/
You can’t perform that action at this time.
0 commit comments