From 5824b3cceae0993388ed178e0d403bd03c853afe Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Mon, 11 Mar 2024 06:38:17 -0700 Subject: [PATCH] Added new items from anniversary update (#409) * Transcended Primals * Awakened Grands * Uncapped weapons --- components/about/ContentUpdate/index.tsx | 28 +++++++++++++++++ components/about/UpdatesPage/index.tsx | 39 ++++++++++++++++++++++++ public/locales/en/updates.json | 3 ++ public/locales/ja/updates.json | 3 ++ 4 files changed, 73 insertions(+) diff --git a/components/about/ContentUpdate/index.tsx b/components/about/ContentUpdate/index.tsx index 26b62d68..39f6cc78 100644 --- a/components/about/ContentUpdate/index.tsx +++ b/components/about/ContentUpdate/index.tsx @@ -18,6 +18,7 @@ interface Props { newItems?: UpdateObject uncappedItems?: UpdateObject transcendedItems?: UpdateObject + awakenedItems?: string[] raidItems?: string[] numNotes: number } @@ -28,6 +29,7 @@ const ContentUpdate = ({ newItems, uncappedItems, transcendedItems, + awakenedItems, raidItems, numNotes, }: Props) => { @@ -155,6 +157,31 @@ const ContentUpdate = ({ return section } + function awakenedItemElements() { + let elements: React.ReactNode[] = [] + if (awakenedItems) { + elements = awakenedItems.map((id) => { + return + }) + } + return elements + } + + function awakenedItemSection() { + let section: React.ReactNode = '' + + if (awakenedItems && awakenedItems.length > 0) { + section = ( +
+

{updates(`labels.awakened.weapons`)}

+
{awakenedItemElements()}
+
+ ) + } + + return section + } + function raidItemElements() { let elements: React.ReactNode[] = [] @@ -192,6 +219,7 @@ const ContentUpdate = ({ {newItemSection('summon')} {uncapItemSection('summon')} {transcendItemSection('summon')} + {awakenedItemSection()} {newRaidSection()} {numNotes > 0 ? ( diff --git a/components/about/UpdatesPage/index.tsx b/components/about/UpdatesPage/index.tsx index 476dcc06..e2d65222 100644 --- a/components/about/UpdatesPage/index.tsx +++ b/components/about/UpdatesPage/index.tsx @@ -78,6 +78,45 @@ const UpdatesPage = () => { return (

{common('about.segmented_control.updates')}

+