Commit 0168fc2 1 parent 2df4edd commit 0168fc2 Copy full SHA for 0168fc2
File tree 1 file changed +12
-2
lines changed
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 1
- import { useEuiTheme } from '@elastic/eui' ;
2
1
import isEmpty from 'lodash-es/isEmpty.js' ;
3
2
import { useObservable } from 'observable-hooks' ;
4
3
import type { ReactNode } from 'react' ;
@@ -44,7 +43,6 @@ const GamePage: React.FC = (): ReactNode => {
44
43
// TODO load the grid config items
45
44
// TODO load the grid layout items
46
45
47
- const { euiTheme } = useEuiTheme ( ) ;
48
46
const { colorMode } = useTheme ( ) ;
49
47
50
48
const mainStreamId = getGameItemInfo ( GameItemId . MAIN ) . streamId ;
@@ -240,6 +238,18 @@ const GamePage: React.FC = (): ReactNode => {
240
238
} ) ;
241
239
} ) ;
242
240
241
+ useSubscribe ( [ 'game:disconnect' ] , ( ) => {
242
+ gameLogLineSubject$ . next ( {
243
+ eventId : uuid ( ) ,
244
+ streamId : mainStreamId ,
245
+ styles : {
246
+ colorMode,
247
+ subdued : true ,
248
+ } ,
249
+ text : `> GAME DISCONNECTED` ,
250
+ } ) ;
251
+ } ) ;
252
+
243
253
const contentItems = useMemo < Array < GridItemContent > > ( ( ) => {
244
254
// TODO define a default config set
245
255
// TODO allow users to customize the config, and add/remove items
You can’t perform that action at this time.
0 commit comments