Skip to content

Commit

Permalink
Add id to DraftOptionPanels
Browse files Browse the repository at this point in the history
  • Loading branch information
HSZemi committed Nov 21, 2024
1 parent 761cb32 commit d9522ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/draft/DraftOptionPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ class DraftOptionPanel extends React.Component<IProps, IState> {

public render() {
const draftOption: DraftOption | undefined = this.props.draftOption;
const divId = this.props.turnNumber !== undefined ? 'panel-turn-' + this.props.turnNumber : undefined;
let image = <></>;
let imageSrc: string = "";
let draftOptionKey = '';
Expand Down Expand Up @@ -204,7 +205,7 @@ class DraftOptionPanel extends React.Component<IProps, IState> {
}

return (
<div className={className} onClick={onClickAction}
<div id={divId} className={className} onClick={onClickAction}
onMouseEnter={onMouseEnter}
onMouseLeave={onMouseLeave}
>
Expand Down

0 comments on commit d9522ed

Please sign in to comment.