client: fix dom structure with a

pull/113/head
fantasticit 2022-06-30 21:41:49 +08:00
parent ee690bf5d3
commit 7e7ff516cd
1 changed files with 28 additions and 26 deletions

View File

@ -119,32 +119,34 @@ export const OrganizationSwitcher = () => {
error={error}
normalContent={() => {
return (
<Link
href={{
pathname: '/app/org/[organizationId]',
query: {
organizationId: data.id,
},
}}
>
<a className={styles.nameWrap}>
<span style={{ display: 'flex', alignItems: 'center' }}>
<Avatar size="small" src={data.logo} style={{ marginRight: 8 }} />
<Paragraph
style={{
maxWidth: 100,
whiteSpace: 'nowrap',
textOverflow: 'ellipsis',
overflow: 'hidden',
}}
strong
>
{data.name}
</Paragraph>
</span>
<UserOrganizationsSwitcher />
</a>
</Link>
<>
<Link
href={{
pathname: '/app/org/[organizationId]',
query: {
organizationId: data.id,
},
}}
>
<a className={styles.nameWrap}>
<span style={{ display: 'flex', alignItems: 'center' }}>
<Avatar size="small" src={data.logo} style={{ marginRight: 8 }} />
<Paragraph
style={{
maxWidth: 100,
whiteSpace: 'nowrap',
textOverflow: 'ellipsis',
overflow: 'hidden',
}}
strong
>
{data.name}
</Paragraph>
</span>
</a>
</Link>
<UserOrganizationsSwitcher />
</>
);
}}
/>