delete comments
This commit is contained in:
@@ -35,8 +35,8 @@ export default function UpdateUserPage() {
|
||||
const token = Cookies.get("token");
|
||||
const headers = { Authorization: `Bearer ${token}` };
|
||||
|
||||
const response = await axios.post(
|
||||
`${process.env.NEXT_PUBLIC_API_URL}/auth/UpdateUsuario`,
|
||||
const response = await axios.patch(
|
||||
`${process.env.NEXT_PUBLIC_API_URL}/auth/update`,
|
||||
{
|
||||
nombre,
|
||||
contrasenaN,
|
||||
|
||||
@@ -1,17 +1,10 @@
|
||||
// ToggleButton.tsx
|
||||
// Usa este archivo como `ToggleButton.tsx`
|
||||
|
||||
import React, { useState } from "react";
|
||||
import styles from "./ToggleButton.module.scss";
|
||||
|
||||
export type ToggleButtonProps = {
|
||||
/** estado inicial: true -> presionado ("desuso") */
|
||||
defaultOn?: boolean;
|
||||
/** callback cuando cambia el estado */
|
||||
onChange?: (on: boolean) => void;
|
||||
/** texto cuando está apagado (por defecto: "uso") */
|
||||
offLabel?: string;
|
||||
/** texto cuando está encendido (por defecto: "desuso") */
|
||||
onLabel?: string;
|
||||
className?: string;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user