feat: add back button in company details top bar (#729)

* feat: add back button in company details top bar

Closes #636

* Add back button on person page

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
Thaïs
2023-07-18 18:33:37 +02:00
committed by GitHub
parent 434ea605a8
commit fdb2011a96
4 changed files with 33 additions and 4 deletions

View File

@ -30,6 +30,7 @@ export function CompanyShow() {
return (
<WithTopBarContainer
title={company?.name ?? ''}
hasBackButton
icon={<IconBuildingSkyscraper size={theme.icon.size.md} />}
>
<ShowPageLeftContainer>

View File

@ -24,6 +24,7 @@ export function PersonShow() {
<WithTopBarContainer
title={person?.firstName ?? ''}
icon={<IconUser size={theme.icon.size.md} />}
hasBackButton
>
<>
<ShowPageLeftContainer>