Skip to content

Commit 3881714

Browse files
committed
Move company site link next to company name
1 parent c84f704 commit 3881714

File tree

1 file changed

+9
-10
lines changed
  • src/app/(authenticated)/companies/[id]

1 file changed

+9
-10
lines changed

src/app/(authenticated)/companies/[id]/page.tsx

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@ import StandDetails from "./StandDetails";
1111
import { UserTile } from "@/components/user/UserTile";
1212
import { SessionTile } from "@/components/session";
1313
import EventDayButton from "@/components/EventDayButton";
14-
import { Scan } from "lucide-react";
14+
import { ExternalLinkIcon, Scan } from "lucide-react";
1515
import Link from "next/link";
1616
import BlankPageWithMessage from "@/components/BlankPageMessage";
1717
import ConnectionTile from "@/components/user/ConnectionTile";
18-
import { LinkIcon } from "lucide-react";
1918

2019
interface CompanyParams {
2120
id: string;
@@ -54,7 +53,14 @@ export default async function Company({ params }: { params: CompanyParams }) {
5453
return (
5554
<div className="container mx-auto">
5655
<div className="flex flex-col items-center gap-y-3 p-4 text-center">
57-
<h2 className="text-2xl font-bold">{company.name}</h2>
56+
<div className="flex justify-center gap-1.5">
57+
<h2 className="text-2xl font-bold">{company.name}</h2>
58+
{company.site && (
59+
<Link href={company.site} target="blank">
60+
<ExternalLinkIcon size={16} className="text-blue-600" />
61+
</Link>
62+
)}
63+
</div>
5864
<Image
5965
className="w-40 h-40 object-contain"
6066
width={150}
@@ -67,13 +73,6 @@ export default async function Company({ params }: { params: CompanyParams }) {
6773
Here Today
6874
</span>
6975
)}
70-
{company.site && (
71-
<Link href={company.site} target="blank">
72-
<div className="bg-sinfo-primary text-white font-bold p-2 rounded-full">
73-
<LinkIcon size={20} />
74-
</div>
75-
</Link>
76-
)}
7776
</div>
7877
{/* Members section */}
7978
{user && isMember(user.role) && (

0 commit comments

Comments
 (0)