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) => (
|
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"
|
||||||
>
|
>
|
||||||
|
|||||||
@ -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"
|
||||||
>
|
>
|
||||||
|
|||||||
@ -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"
|
||||||
>
|
>
|
||||||
|
|||||||
@ -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"
|
||||||
>
|
>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user