From 832ebc452b77f6e3e83fc485606acc4e6b57acbe Mon Sep 17 00:00:00 2001 From: latenitecoding Date: Sat, 27 Jan 2024 20:43:16 -0600 Subject: [PATCH] removes h3 used for debug --- src/components/react/ChessStudy.tsx | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/src/components/react/ChessStudy.tsx b/src/components/react/ChessStudy.tsx index d110182..db1b136 100644 --- a/src/components/react/ChessStudy.tsx +++ b/src/components/react/ChessStudy.tsx @@ -55,10 +55,8 @@ export const ChessStudy = ({ dataAdapter, }: AppProps) => { // Parse Obsidian / Code Block Settings - const { boardColor, boardOrientation, viewComments, chessStudyId } = parseUserConfig( - pluginSettings, - source - ); + const { boardColor, boardOrientation, viewComments, chessStudyId } = + parseUserConfig(pluginSettings, source); // Setup Chessground API const [chessView, setChessView] = useState(null); @@ -276,17 +274,16 @@ export const ChessStudy = ({ /> - { viewComments && -
-

{ viewComments }

- - dispatch({ type: 'SYNC_COMMENT', comment: comment }) - } - /> -
- } + {viewComments && ( +
+ + dispatch({ type: 'SYNC_COMMENT', comment: comment }) + } + /> +
+ )} ); };