Closed ammar-ahmed22 closed 9 months ago
ChessBoard
: showPromotionModal
-> stringChessBoard
: setPromotedPiece
-> React set state function with type "queen" | "rook" | "knight" | "bishop"
showPromotionModal
is defined, it should be an algebraic id where the modal should be attachedsetPromotedPiece
state value
Is your feature request related to a problem? Please describe. Currently, there is no way to handle the piece promotion picker
Describe the solution you'd like Can't think of how to solve this currently. Will come back to this.
Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.
Additional context Add any other context or screenshots about the feature request here.