Skip to content

Commit

Permalink
Fix Request Context button Contact person mention (#3051)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathjazz authored Dec 18, 2023
1 parent 0aeaa3e commit 8b1542d
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions translate/src/modules/entitydetails/components/Helpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,21 +124,6 @@ export function Helpers({
);
}

function CommentsPanel() {
return (
<>
<TeamComments
contactPerson={contactPerson}
initFocus={!isTerminologyProject}
teamComments={teamComments}
user={user}
togglePinnedStatus={togglePinnedStatus}
resetContactPerson={resetContactPerson}
/>
</>
);
}

if (windowWidth === 'narrow' || windowWidth === 'medium') {
return (
<>
Expand Down Expand Up @@ -182,7 +167,15 @@ export function Helpers({
</TabPanel>
)}
<TabPanel>
<CommentsPanel />
{/* HACK: Required inline due to https://github.com/mozilla/pontoon/issues/2300 */}
<TeamComments
contactPerson={contactPerson}
initFocus={!isTerminologyProject}
teamComments={teamComments}
user={user}
togglePinnedStatus={togglePinnedStatus}
resetContactPerson={resetContactPerson}
/>
</TabPanel>
</Tabs>
</div>
Expand Down Expand Up @@ -213,7 +206,15 @@ export function Helpers({
</TabPanel>
)}
<TabPanel>
<CommentsPanel />
{/* HACK: Required inline due to https://github.com/mozilla/pontoon/issues/2300 */}
<TeamComments
contactPerson={contactPerson}
initFocus={!isTerminologyProject}
teamComments={teamComments}
user={user}
togglePinnedStatus={togglePinnedStatus}
resetContactPerson={resetContactPerson}
/>
</TabPanel>
</Tabs>
</div>
Expand Down

0 comments on commit 8b1542d

Please sign in to comment.