Skip to content

Commit 52f8fcf

Browse files
committed
Fix move company image on QR page
1 parent efbc630 commit 52f8fcf

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/app/(authenticated)/qr/page.tsx

+11-11
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,6 @@ export default async function QR() {
6363
{convertToAppRole(user.role)}
6464
</p>
6565
</div>
66-
{company && (
67-
<Link href={`/companies/${company.id}`}>
68-
<Image
69-
className="h-[80px] w-[80px] object-contain"
70-
width={80}
71-
height={80}
72-
src={company.img}
73-
alt={`${company.name} logo`}
74-
/>
75-
</Link>
76-
)}
7766
<Link
7867
href="/qr/scan"
7968
className="button button-primary text-lg w-full"
@@ -82,6 +71,17 @@ export default async function QR() {
8271
<ScanQrCode size={24} />
8372
Scan
8473
</Link>
74+
{company && (
75+
<Link href={`/companies/${company.id}`}>
76+
<Image
77+
className="size-[50px] object-contain"
78+
width={50}
79+
height={50}
80+
src={company.img}
81+
alt={`${company.name} logo`}
82+
/>
83+
</Link>
84+
)}
8585
</div>
8686
</div>
8787
);

0 commit comments

Comments
 (0)