Skip to content

Commit

Permalink
Build
Browse files Browse the repository at this point in the history
  • Loading branch information
0xdevcollins committed Dec 5, 2024
1 parent 2f8fea3 commit 46ed417
Show file tree
Hide file tree
Showing 33 changed files with 2,007 additions and 3,780 deletions.
27 changes: 22 additions & 5 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,26 @@
{
"extends": ["next/core-web-vitals", "plugin:@typescript-eslint/recommended", "prettier"],
"plugins": ["@typescript-eslint", "prettier"],
"extends": [
"next/core-web-vitals",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"root": true,
"parserOptions": {
"project": "./tsconfig.json"
},
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"parserOptions": {
"project": ["./tsconfig.json"]
}
}
],
"rules": {
"prettier/prettier": "error",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-explicit-any": "warn"
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"@typescript-eslint/explicit-module-boundary-types": "off",
"react/react-in-jsx-scope": "off"
}
}

14 changes: 0 additions & 14 deletions app/api/auth/set-cookie/route.ts

This file was deleted.

118 changes: 0 additions & 118 deletions app/auth/basic-info/page.tsx

This file was deleted.

98 changes: 0 additions & 98 deletions app/auth/business-info/page.tsx

This file was deleted.

7 changes: 1 addition & 6 deletions app/auth/login/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use client';

import { useState } from 'react';
import { useRouter } from 'next/navigation';
import Link from 'next/link';
import { motion } from 'framer-motion';
import { Button } from '@/components/ui/button';
Expand All @@ -14,7 +13,6 @@ import { useAuth } from '@/hooks/useAuth';
import { useAuthStore } from '@/store/authStore';

export default function LoginPage() {
const router = useRouter();
const { toast } = useToast();

const [formData, setFormData] = useState({
Expand All @@ -27,7 +25,6 @@ export default function LoginPage() {

const handleSubmit = async (e: React.FormEvent) => {
e.preventDefault();
// setLoading(true);

try {
await auth.login(formData.email, formData.password);
Expand All @@ -37,8 +34,6 @@ export default function LoginPage() {
title: 'Error',
description: error instanceof Error ? error.message : 'Failed to login',
});
} finally {
// setLoading(false);
}
};

Expand All @@ -50,7 +45,7 @@ export default function LoginPage() {
transition={{ duration: 0.3 }}
>
<AuthCard title="Login">
<form onSubmit={handleSubmit} className="space-y-4">
<form onSubmit={(e) => void handleSubmit(e)} className="space-y-4">
{user?.email || 3}
<div className="space-y-2">
<Label htmlFor="email">Email</Label>
Expand Down
Loading

0 comments on commit 46ed417

Please sign in to comment.