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";
|
import React from "react";
|
||||||
|
|
||||||
const CloseIcon = () => (
|
const CloseIcon = () => (
|
||||||
@@ -64,12 +65,14 @@ export default function Window({
|
|||||||
<div className="flex h-4 w-4 items-center justify-center opacity-80">
|
<div className="flex h-4 w-4 items-center justify-center opacity-80">
|
||||||
<MaximizeIcon />
|
<MaximizeIcon />
|
||||||
</div>
|
</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 />
|
<CloseIcon />
|
||||||
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
{/* Content Area */}
|
|
||||||
<div className="p-6">{children}</div>
|
<div className="p-6">{children}</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user