File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -298,7 +298,6 @@ export const StreamAnalysis: React.FC<Props> = ({
298298 < MovesContainer
299299 game = { game }
300300 termination = { game . termination }
301- type = "analysis"
302301 showAnnotations = { true }
303302 disableKeyboardNavigation = { false }
304303 disableMoveClicking = { false }
@@ -510,7 +509,6 @@ export const StreamAnalysis: React.FC<Props> = ({
510509 < MovesContainer
511510 game = { game }
512511 termination = { game . termination }
513- type = "analysis"
514512 showAnnotations = { true }
515513 disableKeyboardNavigation = { false }
516514 disableMoveClicking = { false }
Original file line number Diff line number Diff line change @@ -215,11 +215,7 @@ export const GameplayInterface: React.FC<React.PropsWithChildren<Props>> = (
215215 />
216216 ) : null }
217217 < div className = "relative bottom-0 h-full min-h-[38px] flex-1" >
218- < MovesContainer
219- game = { game }
220- termination = { game . termination }
221- type = "play"
222- />
218+ < MovesContainer game = { game } termination = { game . termination } />
223219 </ div >
224220 < div > { props . children } </ div >
225221 < div className = "flex-none" >
@@ -295,11 +291,7 @@ export const GameplayInterface: React.FC<React.PropsWithChildren<Props>> = (
295291 </ div >
296292 < div className = "w-full overflow-x-auto" >
297293 < div className = "flex flex-row whitespace-nowrap py-2" >
298- < MovesContainer
299- game = { game }
300- termination = { game . termination }
301- type = "play"
302- />
294+ < MovesContainer game = { game } termination = { game . termination } />
303295 </ div >
304296 </ div >
305297 < div className = "w-screen" > { props . children } </ div >
Original file line number Diff line number Diff line change @@ -236,7 +236,6 @@ const AnimatedGameReplay: React.FC<{
236236 id : 'drill-performance' ,
237237 tree : gameTree ,
238238 } }
239- type = "analysis"
240239 showAnnotations = { true }
241240 showVariations = { false }
242241 />
Original file line number Diff line number Diff line change @@ -697,7 +697,6 @@ const OpeningsPage: NextPage = () => {
697697 moves : [ ] ,
698698 }
699699 }
700- type = "analysis"
701700 showAnnotations = {
702701 controller . analysisEnabled ||
703702 controller . continueAnalyzingMode
@@ -946,7 +945,6 @@ const OpeningsPage: NextPage = () => {
946945 moves : [ ] ,
947946 }
948947 }
949- type = "analysis"
950948 showAnnotations = {
951949 controller . analysisEnabled || controller . continueAnalyzingMode
952950 }
Original file line number Diff line number Diff line change @@ -195,11 +195,7 @@ const Turing: React.FC<Props> = (props: Props) => {
195195 className = "flex h-[75vh] min-w-64 flex-grow flex-col gap-1"
196196 >
197197 < div className = "relative bottom-0 h-full min-h-[38px] flex-1" >
198- < MovesContainer
199- game = { game }
200- termination = { game . termination }
201- type = "turing"
202- />
198+ < MovesContainer game = { game } termination = { game . termination } />
203199 </ div >
204200 < div id = "turing-submission" >
205201 < TuringSubmission rating = { stats . rating ?? 0 } />
@@ -251,11 +247,7 @@ const Turing: React.FC<Props> = (props: Props) => {
251247 </ div >
252248 < div className = "flex h-auto w-full flex-col gap-1" >
253249 < div className = "relative bottom-0 h-full flex-1 overflow-auto" >
254- < MovesContainer
255- game = { game }
256- termination = { game . termination }
257- type = "turing"
258- />
250+ < MovesContainer game = { game } termination = { game . termination } />
259251 </ div >
260252 < div className = "flex-none" >
261253 < BoardController
@@ -313,4 +305,10 @@ const Turing: React.FC<Props> = (props: Props) => {
313305 )
314306}
315307
308+ export const getServerSideProps = async ( ) => {
309+ return {
310+ props : { } ,
311+ }
312+ }
313+
316314export default TuringPage
You can’t perform that action at this time.
0 commit comments