Skip to content

Commit f7d3b05

Browse files
Hide company logo when name is null/empty and add settings navigation (#476)
1 parent 852a632 commit f7d3b05

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

frontend/components/layouts/Main.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,11 @@ const CompanyName = () => {
194194
const company = useCurrentCompany();
195195
return (
196196
<>
197-
<div className="relative size-6">
198-
<Image src={company.logo_url || defaultCompanyLogo} fill className="rounded-sm" alt="" />
199-
</div>
197+
{company.name ? (
198+
<Link href="/settings" className="relative size-6">
199+
<Image src={company.logo_url || defaultCompanyLogo} fill className="rounded-sm" alt="" />
200+
</Link>
201+
) : null}
200202
<div>
201203
<span className="line-clamp-1 text-sm font-bold" title={company.name ?? ""}>
202204
{company.name}

0 commit comments

Comments
 (0)