refactor: replace anchor tags with Link components for navigation in dashboard pages
This commit is contained in:
parent
ac5c095ecc
commit
338f4a72c4
@ -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"
|
||||
>
|
||||
|
||||
@ -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"
|
||||
>
|
||||
|
||||
@ -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"
|
||||
>
|
||||
|
||||
@ -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"
|
||||
>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user