mirror of https://gitee.com/answerdev/answer.git
fix(UserProfile): Optimising the presentation logic of `ucBranding`
This commit is contained in:
parent
8d4bbfc90b
commit
ad733dc505
|
@ -115,6 +115,9 @@ const Index: FC<Props> = ({ data }) => {
|
|||
</>
|
||||
) : null}
|
||||
{ucBranding.map((b, i) => {
|
||||
if (!b.label) {
|
||||
return null;
|
||||
}
|
||||
return (
|
||||
<div
|
||||
key={b.name}
|
||||
|
@ -128,9 +131,13 @@ const Index: FC<Props> = ({ data }) => {
|
|||
}}
|
||||
/>
|
||||
) : null}
|
||||
<a className="link-secondary" href={b.url}>
|
||||
{b.label}
|
||||
</a>
|
||||
{b.url ? (
|
||||
<a className="link-secondary" href={b.url}>
|
||||
{b.label}
|
||||
</a>
|
||||
) : (
|
||||
<span>{b.label}</span>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
|
|
Loading…
Reference in New Issue