From 19332d124d565a78c9302991b050ee448fb4f7a9 Mon Sep 17 00:00:00 2001
From: giancarlo
Date: Thu, 25 Apr 2024 10:57:56 +0700
Subject: [PATCH] Update nesting of Button and Link components
The Link component is modified to be nested within the Button component in various JSX files. This change was made with the aid of the 'asChild' property, it ensures that the link remains operable even when wrapped by the button, improving the site's semantics and accessibility.
---
.../site-header-account-section.tsx | 16 +++++++-------
.../_components/site-navigation.tsx | 2 +-
apps/web/app/(marketing)/faq/page.tsx | 8 +++----
apps/web/app/(marketing)/page.tsx | 16 +++++++-------
apps/web/app/auth/callback/error/page.tsx | 2 +-
apps/web/app/auth/password-reset/page.tsx | 8 +++----
apps/web/app/auth/sign-in/page.tsx | 8 +++----
apps/web/app/auth/sign-up/page.tsx | 8 +++----
apps/web/app/join/page.tsx | 8 +++----
apps/web/app/not-found.tsx | 8 +++----
.../src/components/password-sign-in-form.tsx | 19 +++++++++--------
packages/ui/src/makerkit/sidebar.tsx | 21 ++++++++++---------
12 files changed, 63 insertions(+), 61 deletions(-)
diff --git a/apps/web/app/(marketing)/_components/site-header-account-section.tsx b/apps/web/app/(marketing)/_components/site-header-account-section.tsx
index 7c10175cc..0f1f4c030 100644
--- a/apps/web/app/(marketing)/_components/site-header-account-section.tsx
+++ b/apps/web/app/(marketing)/_components/site-header-account-section.tsx
@@ -71,15 +71,15 @@ function AuthButtons() {