Skip to content

Commit

Permalink
Added FGOText to more places
Browse files Browse the repository at this point in the history
  • Loading branch information
squaresmile committed Mar 29, 2024
1 parent 98eb8fe commit f1b4f16
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
9 changes: 7 additions & 2 deletions packages/db/src/Page/BuffPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import RawDataViewer from "../Component/RawDataViewer";
import FuncDescriptor from "../Descriptor/FuncDescriptor";
import TraitDescription from "../Descriptor/TraitDescription";
import { mergeElements } from "../Helper/OutputHelper";
import { FGOText } from "../Helper/StringHelper";
import Manager, { lang } from "../Setting/Manager";

interface IProps extends WithTranslation {
Expand Down Expand Up @@ -75,13 +76,17 @@ class BuffPage extends React.Component<IProps, IState> {
{ label: t("ID"), value: buff.id },
{
label: t("Name"),
value: <span lang={lang(region)}>{buff.name}</span>,
value: (
<span lang={lang(region)}>
<FGOText text={buff.name} />
</span>
),
},
{
label: t("Detail"),
value: (
<span className="text-prewrap" lang={lang(region)}>
{buff.detail}
<FGOText text={buff.detail} />
</span>
),
},
Expand Down
17 changes: 14 additions & 3 deletions packages/db/src/Page/NoblePhantasmPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import EntityDescriptor from "../Descriptor/EntityDescriptor";
import { QuestDescriptionNoApi } from "../Descriptor/QuestDescriptor";
import TraitDescription from "../Descriptor/TraitDescription";
import { asPercent, mergeElements } from "../Helper/OutputHelper";
import { Ruby } from "../Helper/StringHelper";
import { FGOText, Ruby } from "../Helper/StringHelper";
import Manager, { lang } from "../Setting/Manager";
import NoblePhantasmVersion from "./NoblePhantasm/NoblePhantasmVersion";

Expand Down Expand Up @@ -105,10 +105,21 @@ class NoblePhantasmPage extends React.Component<IProps, IState> {
<DataTable
data={[
{ label: t("ID"), value: noblePhantasm.id },
{ label: t("Name"), value: <span lang={lang(region)}>{noblePhantasm.name}</span> },
{
label: t("Name"),
value: (
<span lang={lang(region)}>
<FGOText text={noblePhantasm.name} />
</span>
),
},
{
label: t("Original Name"),
value: <span lang={lang(region)}>{noblePhantasm.originalName}</span>,
value: (
<span lang={lang(region)}>
<FGOText text={noblePhantasm.originalName} />
</span>
),
hidden: noblePhantasm.name === noblePhantasm.originalName,
},
{ label: t("Ruby"), value: <span lang={lang(region)}>{noblePhantasm.ruby}</span> },
Expand Down
2 changes: 1 addition & 1 deletion packages/db/src/Page/SkillPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ class SkillPage extends React.Component<IProps, IState> {
label: t("Original Name"),
value: (
<span className="text-prewrap" lang={lang(this.props.region)}>
{skill.originalName}
<FGOText text={skill.originalName} />
</span>
),
hidden: skill.name === skill.originalName,
Expand Down

0 comments on commit f1b4f16

Please sign in to comment.