summaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-05-26 23:59:39 -0600
committerHombreLaser <sebastian-440@live.com>2023-05-26 23:59:39 -0600
commitef7a44d526004cdfd56c527f95113150bf8629cf (patch)
tree458647123d795527a7a0540bf5c7e34c2869d1c8 /src/components
parent61ceb5a40e9d86093090e9c6cceefc031ff9e0bd (diff)
Mejora manejo de sesiones
Diffstat (limited to 'src/components')
-rw-r--r--src/components/addresses_table.tsx2
-rw-r--r--src/components/main_page_dropdown_menu.tsx1
-rw-r--r--src/components/payment_methods_table.tsx2
3 files changed, 3 insertions, 2 deletions
diff --git a/src/components/addresses_table.tsx b/src/components/addresses_table.tsx
index f55c04a..3f0a323 100644
--- a/src/components/addresses_table.tsx
+++ b/src/components/addresses_table.tsx
@@ -16,7 +16,7 @@ export default function AddressesTable({ addresses }) {
Nueva dirección
</a>
</div>
- <table className="w-full text-sm text-left text-gray-500 dark:text-gray-400">
+ <table className="my-4 w-full text-sm text-left text-gray-500 dark:text-gray-400">
<thead className="bg-blue-arma text-xs text-white uppercase dark:bg-gray-700 dark:text-gray-400">
<tr>
<th scope="col" className="px-6 py-3">
diff --git a/src/components/main_page_dropdown_menu.tsx b/src/components/main_page_dropdown_menu.tsx
index 8c043a8..16fb302 100644
--- a/src/components/main_page_dropdown_menu.tsx
+++ b/src/components/main_page_dropdown_menu.tsx
@@ -1,6 +1,7 @@
import UserAccountButton from "./user_account_button";
import { LoginForm } from "./forms/login_form";
import Token from "../lib/token";
+import { refreshIfExpired, isUserAuthenticated } from "../lib/session";
import UserAccountDropdownMenu from "./user_account_dropdown_menu";
export default function MainPageDropdownMenu() {
diff --git a/src/components/payment_methods_table.tsx b/src/components/payment_methods_table.tsx
index f4c9f3e..4fda4b3 100644
--- a/src/components/payment_methods_table.tsx
+++ b/src/components/payment_methods_table.tsx
@@ -17,7 +17,7 @@ export default function PaymentMethodsTable({ payment_methods }) {
Nuevo método de pago
</a>
</div>
- <table className="w-full text-sm text-left text-gray-500 dark:text-gray-400">
+ <table className="my-4 w-full text-sm text-left text-gray-500 dark:text-gray-400">
<thead className="bg-blue-arma text-xs text-white uppercase dark:bg-gray-700 dark:text-gray-400">
<tr>
<th scope="col" className="px-6 py-3">