Skip to content

Commit e24dbb0

Browse files
committed
Add missing linebreaks
1 parent 7923dae commit e24dbb0

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/App.tsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export default function App() {
8585

8686
const state_ = JSON.stringify(state, (k, v) => k === "userPieces" ? null : v)
8787
const getInitialState_ = JSON.stringify(getInitialState(), (k, v) => k === "userPieces" ? null : v)
88-
88+
8989
if(
9090
JSON.stringify(prevState.userPieces) !== JSON.stringify(state.userPieces) &&
9191
state_ !== getInitialState_
@@ -117,7 +117,7 @@ export default function App() {
117117
setState(prevState => {
118118
const userPieces = prevState.userPieces.map((piece, i) => i === selectedPieceIndex ? null : piece)
119119
// only enable if user has any undos left
120-
120+
121121
return ({
122122
board: newBoard,
123123
userPieces: userPieces.every(p => p == null)
@@ -135,7 +135,7 @@ export default function App() {
135135
// if (shouldSucceed !== fit) {
136136
// prompt("red test", newTest)
137137
// }
138-
138+
139139
}, [boardWithPreview, fit, queue, state, undoRef, undosLeft])
140140

141141
usePointerExit(pointerUpHandler)
@@ -190,7 +190,7 @@ export default function App() {
190190
onPointerDown={e => {
191191
// Prevent drag behaviour
192192
e.preventDefault()
193-
193+
194194
// Select the piece that was dragged from
195195
setState(prevState => ({
196196
...prevState,
@@ -277,4 +277,4 @@ const getNewPieces = (queue: any, undoRef: any) => {
277277
undoRef && (undoRef.current.disabled = true)
278278
return drawN(pieces, 3)
279279
}
280-
}
280+
}

src/constants.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ export const hues = [
1919

2020
export const highscoreLocalStorageKey = "KLODS_HIGHSCORE"
2121

22-
export const undos = 3
22+
export const undos = 3

src/util.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export function checkIfPieceFitsAndUpdateBoard({
5050
) {
5151
return [false, null]
5252
}
53-
53+
5454
const updatedBoard = board.slice() as IBoard
5555

5656
for (let i = 0; i < piece.length; i++) {

0 commit comments

Comments
 (0)