fix(approved-access-domain): Improve ux (#13367)

Fix #13324

---------

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
Antoine Moreaux
2025-07-23 11:58:01 +02:00
committed by GitHub
parent 0ef7e6db85
commit d27fae1dfd
3 changed files with 30 additions and 7 deletions

View File

@ -0,0 +1,2 @@
export const DEFAULT_WORKSPACE_LOGO =
'https://twentyhq.github.io/placeholder-images/workspaces/twenty-logo.png';

View File

@ -13,6 +13,7 @@ import { Title } from 'src/components/Title';
import { capitalize } from 'src/utils/capitalize';
import { APP_LOCALES } from 'twenty-shared/translations';
import { getImageAbsoluteURI } from 'twenty-shared/utils';
import { DEFAULT_WORKSPACE_LOGO } from 'src/constants/DefaultWorkspaceLogo';
type SendApprovedAccessDomainValidationProps = {
link: string;
@ -63,16 +64,19 @@ export const SendApprovedAccessDomainValidation = ({
<br />
</MainText>
<HighlightedContainer>
{workspaceLogo ? (
<object
data={workspaceLogo ?? DEFAULT_WORKSPACE_LOGO}
width={40}
height={40}
aria-label="Workspace logo"
>
<Img
src={workspaceLogo}
src={DEFAULT_WORKSPACE_LOGO}
width={40}
height={40}
alt="Workspace logo"
/>
) : (
<></>
)}
</object>
{workspace.name ? <HighlightedText value={workspace.name} /> : <></>}
<CallToAction href={link} value={i18n._('Validate domain')} />
</HighlightedContainer>