Skip to content

Commit

Permalink
Fix Request Context button Contact person mention
Browse files Browse the repository at this point in the history
  • Loading branch information
mathjazz committed Dec 15, 2023
1 parent 2cea74d commit 036418a
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 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,14 @@ export function Helpers({
</TabPanel>
)}
<TabPanel>
<CommentsPanel />
<TeamComments
contactPerson={contactPerson}
initFocus={!isTerminologyProject}
teamComments={teamComments}
user={user}
togglePinnedStatus={togglePinnedStatus}
resetContactPerson={resetContactPerson}
/>
</TabPanel>
</Tabs>
</div>
Expand Down Expand Up @@ -213,7 +205,14 @@ export function Helpers({
</TabPanel>
)}
<TabPanel>
<CommentsPanel />
<TeamComments
contactPerson={contactPerson}
initFocus={!isTerminologyProject}
teamComments={teamComments}
user={user}
togglePinnedStatus={togglePinnedStatus}
resetContactPerson={resetContactPerson}
/>
</TabPanel>
</Tabs>
</div>
Expand Down

0 comments on commit 036418a

Please sign in to comment.