@vtex/faststore-plugin-buyer-portal 1.1.76 → 1.1.77

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vtex/faststore-plugin-buyer-portal",
3
- "version": "1.1.76",
3
+ "version": "1.1.77",
4
4
  "description": "A plugin for faststore with buyer portal",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,7 +1,5 @@
1
1
  import type { ReactNode } from "react";
2
2
 
3
- import Link from "next/link";
4
-
5
3
  import { Dropdown } from "@faststore/components";
6
4
 
7
5
  import { BasicDropdownMenu } from "../../BasicDropdownMenu/BasicDropdownMenu";
@@ -36,7 +34,7 @@ export const TableRow = ({
36
34
  enabled = true,
37
35
  ...otherProps
38
36
  }: TableRowProps) => {
39
- const ClickComponent = href ? Link : "button";
37
+ const ClickComponent = href ? "a" : "button";
40
38
 
41
39
  return (
42
40
  <tr
@@ -79,12 +79,10 @@ export const CreateUserDrawer = ({
79
79
  data-fs-bp-toast-view-button
80
80
  type="button"
81
81
  onClick={() => {
82
- router.push(
83
- buyerPortalRoutes.userDetails({
84
- userId: user.id,
85
- orgUnitId: orgUnitId,
86
- })
87
- );
82
+ window.location.href = buyerPortalRoutes.userDetails({
83
+ userId: user.id,
84
+ orgUnitId: orgUnitId,
85
+ });
88
86
  }}
89
87
  >
90
88
  View
@@ -56,12 +56,10 @@ export const UserDropdownMenu = ({
56
56
  <BasicDropdownMenu>
57
57
  <DropdownItem
58
58
  onClick={() =>
59
- route.push(
60
- buyerPortalRoutes.userDetails({
61
- orgUnitId: currentOrgUnit?.id ?? "",
62
- userId: user.id,
63
- })
64
- )
59
+ (window.location.href = buyerPortalRoutes.userDetails({
60
+ orgUnitId: currentOrgUnit?.id ?? "",
61
+ userId: user.id,
62
+ }))
65
63
  }
66
64
  >
67
65
  <Icon name="OpenInNew" {...sizeProps} />