Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
woprandi committed Oct 23, 2024
1 parent 4a37573 commit 08c68bc
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
18 changes: 13 additions & 5 deletions src/components/boards/Board.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -384,9 +384,11 @@ function Board({
</Tooltip>
)}
<Tooltip
label={
currentTab?.type === "analysis" ? t("Board.Action.PlayFromHere") : t("Board.AnalyzeGame")
}
label={t(
currentTab?.type === "analysis"
? "Board.Action.PlayFromHere"
: "Board.AnalyzeGame",
)}
>
<ActionIcon variant="default" size="lg" onClick={changeTabType}>
{currentTab?.type === "analysis" ? (
Expand Down Expand Up @@ -424,7 +426,9 @@ function Board({
)}

{saveFile && (
<Tooltip label={t("Board.Action.SavePGN", {"key": keyMap.SAVE_FILE.keys})}>
<Tooltip
label={t("Board.Action.SavePGN", { key: keyMap.SAVE_FILE.keys })}
>
<ActionIcon
onClick={() => saveFile()}
size="lg"
Expand All @@ -441,7 +445,11 @@ function Board({
</ActionIcon>
</Tooltip>
)}
<Tooltip label={t("Board.Action.FlipBoard", {"key": keyMap.SWAP_ORIENTATION.keys})}>
<Tooltip
label={t("Board.Action.FlipBoard", {
key: keyMap.SWAP_ORIENTATION.keys,
})}
>
<ActionIcon
variant="default"
size="lg"
Expand Down
4 changes: 2 additions & 2 deletions src/components/panels/info/FenInput.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { TreeStateContext } from "@/components/common/TreeStateContext";
import { getCastlingSquare, swapMove } from "@/utils/chessops";
import { Button, Checkbox, Group, Select, Stack, Text } from "@mantine/core";
import { type Setup, SquareSet } from "chessops";
import { EMPTY_FEN, INITIAL_FEN, makeFen, parseFen } from "chessops/fen";
import { memo, useCallback, useContext, useEffect, useMemo } from "react";
import { useTranslation } from "react-i18next";
import { useStore } from "zustand";
import FenSearch from "./FenSearch";
import { SquareSet, type Setup } from "chessops";
import { useTranslation } from "react-i18next";

type Castlingrights = {
k: boolean;
Expand Down
3 changes: 2 additions & 1 deletion src/translation/fr_FR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ export const fr_FR = {
"Home.Card.Puzzle.Desc": "Entraînement pour vous améliorer",
"Home.Card.Puzzle.Button": "S'entraîner",

"Board.Action.TogglePawnStructureView": "Basculer l'affichage de la structure de pions",
"Board.Action.TogglePawnStructureView":
"Basculer l'affichage de la structure de pions",
"Board.Action.TakeSnapshot": "Prendre une capture d'écran",
"Board.Action.AnalyzeGame": "Analyser la partie",
"Board.Action.PlayFromHere": "Jouer à partir d'ici",
Expand Down

0 comments on commit 08c68bc

Please sign in to comment.