Skip to content

Commit 6420b5e

Browse files
committedFeb 26, 2025·
Added the loading title to the Board
1 parent 3d56023 commit 6420b5e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
 

‎src/routes/Board/Board.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const React = require('react');
44
const classnames = require('classnames');
55
const debounce = require('lodash.debounce');
6-
const { useTranslation } = require('react-i18next');
6+
const useTranslate = require('stremio/common/useTranslate');
77
const { useStreamingServer, useNotifications, withCoreSuspender, getVisibleChildrenRange, useProfile } = require('stremio/common');
88
const { ContinueWatchingItem, EventModal, MainNavBars, MetaItem, MetaRow } = require('stremio/components');
99
const useBoard = require('./useBoard');
@@ -14,7 +14,7 @@ const { default: StreamingServerWarning } = require('./StreamingServerWarning');
1414
const THRESHOLD = 5;
1515

1616
const Board = () => {
17-
const { t } = useTranslation();
17+
const t = useTranslate();
1818
const streamingServer = useStreamingServer();
1919
const continueWatchingPreview = useContinueWatchingPreview();
2020
const [board, loadBoardRows] = useBoard();
@@ -55,7 +55,7 @@ const Board = () => {
5555
continueWatchingPreview.items.length > 0 ?
5656
<MetaRow
5757
className={classnames(styles['board-row'], styles['continue-watching-row'], 'animation-fade-in')}
58-
title={t('BOARD_CONTINUE_WATCHING')}
58+
title={t.string('BOARD_CONTINUE_WATCHING')}
5959
catalog={continueWatchingPreview}
6060
itemComponent={ContinueWatchingItem}
6161
notifications={notifications}
@@ -94,6 +94,7 @@ const Board = () => {
9494
key={index}
9595
className={classnames(styles['board-row'], styles['board-row-poster'], 'animation-fade-in')}
9696
catalog={catalog}
97+
title={t.catalogTitle(catalog)}
9798
/>
9899
);
99100
}

0 commit comments

Comments
 (0)
Please sign in to comment.