Refactor CloseIcon link to improve accessibility and maintainability
All checks were successful
Build and Deploy Blog / build-and-deploy-local (push) Successful in 38s
All checks were successful
Build and Deploy Blog / build-and-deploy-local (push) Successful in 38s
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import Link from "next/link";
|
||||
import React from "react";
|
||||
|
||||
const CloseIcon = () => (
|
||||
@@ -64,12 +65,14 @@ export default function Window({
|
||||
<div className="flex h-4 w-4 items-center justify-center opacity-80">
|
||||
<MaximizeIcon />
|
||||
</div>
|
||||
<div className="flex h-4 w-4 items-center justify-center opacity-80">
|
||||
<Link
|
||||
href="/"
|
||||
className="flex h-4 w-4 items-center justify-center opacity-80"
|
||||
>
|
||||
<CloseIcon />
|
||||
</div>
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
{/* Content Area */}
|
||||
<div className="p-6">{children}</div>
|
||||
</div>
|
||||
);
|
||||
|
Reference in New Issue
Block a user