Skip to content

Commit

Permalink
fix: build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
fagundesjg committed May 6, 2024
1 parent 8fad2c9 commit 4fbac76
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 23 deletions.
18 changes: 9 additions & 9 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended",
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
],
ignorePatterns: ["dist", ".eslintrc.cjs"],
parser: "@typescript-eslint/parser",
plugins: ["react-refresh"],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parser: '@typescript-eslint/parser',
plugins: ['react-refresh'],
rules: {
"@typescript-eslint/no-explicit-any": "off",
"react-refresh/only-export-components": [
"warn",
'@typescript-eslint/no-explicit-any': 'off',
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/CardItensShelter/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { IUseShelterData } from '@/hooks/useShelter/types';
import { SupplyPriority } from '@/Services/supply/types';
import { SupplyPriority } from '@/services/supply/types';

export interface ICardItensShelter {
shelter: IUseShelterData;
Expand Down
24 changes: 11 additions & 13 deletions src/pages/SignIn/SignIn.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { useCallback, useContext } from "react";
import { useForm } from "react-hook-form";
import { zodResolver } from "@hookform/resolvers/zod";
import { useNavigate } from "react-router-dom";
import { z } from "zod";
import { useCallback, useContext } from 'react';
import { useForm } from 'react-hook-form';
import { zodResolver } from '@hookform/resolvers/zod';
import { z } from 'zod';

import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';

import {
Form,
Expand All @@ -14,23 +13,22 @@ import {
FormItem,
FormLabel,
FormMessage,
} from "@/components/ui/form";
} from '@/components/ui/form';

import { signInFormSchema } from "./types";
import { signInFormSchema } from './types';

import { SessionContext } from "@/contexts";
import { SessionContext } from '@/contexts';

type SignInFormValues = z.infer<typeof signInFormSchema>;

const SignIn = () => {
const { refreshSession } = useContext(SessionContext);
const navigate = useNavigate();

const form = useForm<SignInFormValues>({
resolver: zodResolver(signInFormSchema),
defaultValues: {
login: "",
password: "",
login: '',
password: '',
},
});

Expand Down

0 comments on commit 4fbac76

Please sign in to comment.