refactor: replace anchor tags with Link components for navigation in dashboard pages

This commit is contained in:
Ardeman 2025-03-12 20:50:39 +08:00
parent ac5c095ecc
commit 338f4a72c4
4 changed files with 8 additions and 8 deletions

View File

@ -44,8 +44,8 @@ export const AdvertisementsPage = () => {
},
3: (value: string) => (
<Button
as="a"
href={`/lg-admin/advertisements/update/${value}`}
as={Link}
to={`/lg-admin/advertisements/update/${value}`}
className="text-md rounded-md"
size="sm"
>

View File

@ -56,8 +56,8 @@ export const CategoriesPage = () => {
),
3: (value: string) => (
<Button
as="a"
href={`/lg-admin/categories/update/${value}`}
as={Link}
to={`/lg-admin/categories/update/${value}`}
className="text-md rounded-md"
size="sm"
>

View File

@ -83,8 +83,8 @@ export const ContentsPage = () => {
),
7: (value: string) => (
<Button
as="a"
href={`/lg-admin/contents/update/${encodeURIComponent(value)}`}
as={Link}
to={`/lg-admin/contents/update/${encodeURIComponent(value)}`}
className="text-md rounded-md"
size="sm"
>

View File

@ -67,8 +67,8 @@ export const SubscribePlanPage = () => {
),
6: (value: string) => (
<Button
as="a"
href={`/lg-admin/subscribe-plan/update/${value}`}
as={Link}
to={`/lg-admin/subscribe-plan/update/${value}`}
className="text-md rounded-md"
size="sm"
>