CODEBASE: Fix typo of "CorruptableText" (#2144)

This commit is contained in:
catloversg
2025-05-20 10:07:09 +07:00
committed by GitHub
parent 24b31975e7
commit 197e7f79cb
10 changed files with 22 additions and 22 deletions
+2 -2
View File
@@ -22,7 +22,7 @@ import { Settings } from "../../Settings/Settings";
import { GoScoreModal } from "./GoScoreModal";
import { GoGameboard } from "./GoGameboard";
import { GoSubnetSearch } from "./GoSubnetSearch";
import { CorruptableText } from "../../ui/React/CorruptableText";
import { CorruptibleText } from "../../ui/React/CorruptibleText";
import { handleNextTurn, resetGoPromises } from "../boardAnalysis/goAI";
import { GoScoreExplanation } from "./GoScoreExplanation";
import { exceptionAlert } from "../../utils/helpers/exceptionAlert";
@@ -215,7 +215,7 @@ export function GoGameboardWrapper({ showInstructions }: GoGameboardWrapperProps
<Typography variant={"h6"} className={classes.opponentLabel}>
{Go.currentGame.ai !== GoOpponent.none ? "Subnet owner: " : ""}{" "}
{Go.currentGame.ai === GoOpponent.w0r1d_d43m0n ? (
<CorruptableText content={Go.currentGame.ai} spoiler={false} />
<CorruptibleText content={Go.currentGame.ai} spoiler={false} />
) : (
Go.currentGame.ai
)}
+2 -2
View File
@@ -11,7 +11,7 @@ import { getBonusText, getMaxRep } from "../effects/effect";
import { formatNumber } from "../../ui/formatNumber";
import { GoScoreSummaryTable } from "./GoScoreSummaryTable";
import { getNewBoardState } from "../boardState/boardState";
import { CorruptableText } from "../../ui/React/CorruptableText";
import { CorruptibleText } from "../../ui/React/CorruptibleText";
import { getRecordKeys } from "../../Types/Record";
export const GoHistoryPage = (): React.ReactElement => {
@@ -54,7 +54,7 @@ export const GoHistoryPage = (): React.ReactElement => {
{" "}
<strong className={classes.keyText}>
{faction === GoOpponent.w0r1d_d43m0n ? (
<CorruptableText content="????????????" spoiler={false} />
<CorruptibleText content="????????????" spoiler={false} />
) : (
faction
)}
+4 -4
View File
@@ -7,7 +7,7 @@ import { boardSizes, opponentDetails } from "../Constants";
import { boardStyles } from "../boardState/goStyles";
import { Modal } from "../../ui/React/Modal";
import { getHandicap } from "../boardState/boardState";
import { CorruptableText } from "../../ui/React/CorruptableText";
import { CorruptibleText } from "../../ui/React/CorruptibleText";
import { Settings } from "../../Settings/Settings";
import { getOpponentStats } from "../boardAnalysis/scoring";
import { showWorldDemon } from "../boardAnalysis/goAI";
@@ -75,7 +75,7 @@ export const GoSubnetSearch = ({ open, search, cancel, showInstructions }: IProp
{opponentFactions.map((faction) => (
<MenuItem key={faction} value={faction}>
{faction === GoOpponent.w0r1d_d43m0n ? (
<CorruptableText content="???????????????" spoiler={false} />
<CorruptibleText content="???????????????" spoiler={false} />
) : (
`${faction} (${opponentDetails[faction].description})`
)}
@@ -122,8 +122,8 @@ export const GoSubnetSearch = ({ open, search, cancel, showInstructions }: IProp
<Typography>
{opponent === GoOpponent.w0r1d_d43m0n ? (
<>
<CorruptableText content={opponentDetails[opponent].flavorText.slice(0, 40)} spoiler={false} />
<CorruptableText content={opponentDetails[opponent].flavorText.slice(40)} spoiler={false} />
<CorruptibleText content={opponentDetails[opponent].flavorText.slice(0, 40)} spoiler={false} />
<CorruptibleText content={opponentDetails[opponent].flavorText.slice(40)} spoiler={false} />
</>
) : (
opponentDetails[opponent].flavorText