next-chessground 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +3 -1
- package/dist/index.js +3 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -5757,7 +5757,9 @@ const useOrientation = props => {
|
|
|
5757
5757
|
});
|
|
5758
5758
|
};
|
|
5759
5759
|
useEffect(() => {
|
|
5760
|
-
|
|
5760
|
+
if (props.reset) {
|
|
5761
|
+
setOrientation(sideToMove(props.fen));
|
|
5762
|
+
}
|
|
5761
5763
|
}, [props.reset]);
|
|
5762
5764
|
return [orientation, flip];
|
|
5763
5765
|
};
|
package/dist/index.js
CHANGED
|
@@ -5766,7 +5766,9 @@ const useOrientation = props => {
|
|
|
5766
5766
|
});
|
|
5767
5767
|
};
|
|
5768
5768
|
React.useEffect(() => {
|
|
5769
|
-
|
|
5769
|
+
if (props.reset) {
|
|
5770
|
+
setOrientation(sideToMove(props.fen));
|
|
5771
|
+
}
|
|
5770
5772
|
}, [props.reset]);
|
|
5771
5773
|
return [orientation, flip];
|
|
5772
5774
|
};
|