Skip to content

Commit ca370f9

Browse files
tecoholicfarhaanbukhsh
authored andcommitted
refactor: rename the unit page sidebar xBlocks prop
1 parent 3cb7dc2 commit ca370f9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/UnitPageSidebar.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ import { castToBlock, XBlock, Block } from '../types';
88
interface Props {
99
blockId: string;
1010
unitTitle: string;
11-
verticalBlocks: XBlock[];
11+
xBlocks: XBlock[];
1212
}
1313

1414
export function UnitPageSidebar({
15-
blockId, unitTitle, verticalBlocks,
15+
blockId, unitTitle, xBlocks,
1616
}: Props) {
1717
const { sendMessageToIframe } = useIframe();
1818
const contentList = {
1919
title: '',
2020
blocks: React.useMemo(
2121
() => {
22-
const blocks = castToBlock(verticalBlocks) as Block[];
22+
const blocks = castToBlock(xBlocks) as Block[];
2323
return blocks.filter(block => (block.type === 'problem') || (block.type === 'video'));
2424
},
25-
[verticalBlocks],
25+
[xBlocks],
2626
),
2727
};
2828

0 commit comments

Comments
 (0)