From 2ee8060c63b98bd3cd3c7ce19942136a15abdedc Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Mon, 5 Dec 2022 19:47:00 -0800 Subject: [PATCH] Remove moved code This method was moved to [party].tsx --- components/PartyDetails/index.tsx | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/components/PartyDetails/index.tsx b/components/PartyDetails/index.tsx index 651268ce..c28c58ca 100644 --- a/components/PartyDetails/index.tsx +++ b/components/PartyDetails/index.tsx @@ -300,27 +300,6 @@ const PartyDetails = (props: Props) => { ) - const generateTitle = () => { - let title = party.raid ? `[${party.raid?.name[locale]}] ` : '' - - const username = - party.user != null ? `@${party.user?.username}` : t('header.anonymous') - - if (party.name != null) - title += t('header.byline', { - partyName: party.name, - username: username, - }) - else if (party.name == null && party.editable && router.route === '/new') - title = t('header.new_team') - else - title += t('header.untitled_team', { - username: username, - }) - - return title - } - return ( {editable && (party.name || party.description || party.raid)