mirror of
https://github.com/chrislicodes/obsidian-chess-study.git
synced 2026-07-22 07:50:30 +00:00
removes h3 used for debug
This commit is contained in:
parent
0265757d1c
commit
832ebc452b
1 changed files with 12 additions and 15 deletions
|
|
@ -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<Api | null>(null);
|
||||
|
|
@ -276,17 +274,16 @@ export const ChessStudy = ({
|
|||
/>
|
||||
</div>
|
||||
</div>
|
||||
{ viewComments &&
|
||||
<div className="CommentSection">
|
||||
<h3>{ viewComments }</h3>
|
||||
<CommentSection
|
||||
currentComment={gameState.currentMove?.comment}
|
||||
setComments={(comment: JSONContent) =>
|
||||
dispatch({ type: 'SYNC_COMMENT', comment: comment })
|
||||
}
|
||||
/>
|
||||
</div>
|
||||
}
|
||||
{viewComments && (
|
||||
<div className="CommentSection">
|
||||
<CommentSection
|
||||
currentComment={gameState.currentMove?.comment}
|
||||
setComments={(comment: JSONContent) =>
|
||||
dispatch({ type: 'SYNC_COMMENT', comment: comment })
|
||||
}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue