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) => ( 3: (value: string) => (
<Button <Button
as="a" as={Link}
href={`/lg-admin/advertisements/update/${value}`} to={`/lg-admin/advertisements/update/${value}`}
className="text-md rounded-md" className="text-md rounded-md"
size="sm" size="sm"
> >

View File

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

View File

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

View File

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