client: fix dom structure with a

This commit is contained in:
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} error={error}
normalContent={() => { normalContent={() => {
return ( return (
<Link <>
href={{ <Link
pathname: '/app/org/[organizationId]', href={{
query: { pathname: '/app/org/[organizationId]',
organizationId: data.id, query: {
}, organizationId: data.id,
}} },
> }}
<a className={styles.nameWrap}> >
<span style={{ display: 'flex', alignItems: 'center' }}> <a className={styles.nameWrap}>
<Avatar size="small" src={data.logo} style={{ marginRight: 8 }} /> <span style={{ display: 'flex', alignItems: 'center' }}>
<Paragraph <Avatar size="small" src={data.logo} style={{ marginRight: 8 }} />
style={{ <Paragraph
maxWidth: 100, style={{
whiteSpace: 'nowrap', maxWidth: 100,
textOverflow: 'ellipsis', whiteSpace: 'nowrap',
overflow: 'hidden', textOverflow: 'ellipsis',
}} overflow: 'hidden',
strong }}
> strong
{data.name} >
</Paragraph> {data.name}
</span> </Paragraph>
<UserOrganizationsSwitcher /> </span>
</a> </a>
</Link> </Link>
<UserOrganizationsSwitcher />
</>
); );
}} }}
/> />