Skip to content

Commit

Permalink
Added quest original name to quest page
Browse files Browse the repository at this point in the history
  • Loading branch information
squaresmile committed Mar 9, 2024
1 parent abf7caa commit 2fb8040
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/api-connector/src/Schema/Quest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ export interface QuestPhaseRestriction {
export interface Quest {
id: number;
name: string;
originalName: string;
type: QuestType;
flags: QuestFlag[];
consumeType: QuestConsumeType;
Expand Down
21 changes: 21 additions & 0 deletions packages/db/src/Component/QuestSummaryTable.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { Table } from "react-bootstrap";
import { useTranslation } from "react-i18next";

import { Quest } from "@atlasacademy/api-connector";

export const QuestSummaryTable = ({ quest }: { quest: Quest.Quest }) => {
const { t } = useTranslation();

return (
<>
<Table>
<thead>
<th>
<td></td>
</th>
</thead>
<tbody></tbody>
</Table>
</>
);
};
5 changes: 5 additions & 0 deletions packages/db/src/Page/Quest/QuestSubData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ const QuestSubData = ({ region, quest }: { region: Region; quest: Quest.QuestPha
quest.stages.length === 0 ||
quest.enemyHash === undefined,
},
{
label: t("Original Name"),
value: <>{quest.originalName}</>,
hidden: quest.name === quest.originalName,
},
{
label: t("Chaldea App"),
value: (
Expand Down

0 comments on commit 2fb8040

Please sign in to comment.