Skip to content

Commit

Permalink
fix: remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickwebsdev committed Nov 10, 2024
1 parent 914e60b commit 95e6a5d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/components/ChangeStatusButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ type ChangeStatusButtonProps = {
};
export default function ChangeStatusButton({ helpRequestId, onUpdate, currentStatus }: ChangeStatusButtonProps) {
const { toggleModal } = useModal();
const session = useSession();
const [isLoading, setLoading] = useState(false);
const userId = session.user?.id;
const [error, setError] = useState({});
const [status, setStatus] = useState<string>(currentStatus);
const MODAL_NAME = `Actualizar-Estado-Solicitud-${helpRequestId}`;
Expand Down Expand Up @@ -47,7 +44,6 @@ export default function ChangeStatusButton({ helpRequestId, onUpdate, currentSta
e.preventDefault();
toggleModal(MODAL_NAME, true);
}
if (isLoading) return <Spinner />;
if (error === undefined) return <></>;
return (
<>
Expand Down

0 comments on commit 95e6a5d

Please sign in to comment.