Refactor: move useAuth from store/ into hooks/
store/ folder removed — single file doesn't justify its own folder. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
import { useState } from "react";
|
||||
import { useUsers, useUserActions } from "@/hooks/useUsers";
|
||||
import { useAuth } from "@/store/useAuth";
|
||||
import { useAuth } from "@/hooks/useAuth";
|
||||
import { UserCard } from "@/components/UserCard";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { useEffect } from "react";
|
||||
|
||||
@@ -4,7 +4,7 @@ import { use } from "react";
|
||||
import { useChampionship } from "@/hooks/useChampionship";
|
||||
import { useMyRegistrations } from "@/hooks/useMyRegistrations";
|
||||
import { useRegisterForChampionship } from "@/hooks/useRegisterForChampionship";
|
||||
import { useAuth } from "@/store/useAuth";
|
||||
import { useAuth } from "@/hooks/useAuth";
|
||||
import { RegistrationTimeline } from "@/components/RegistrationTimeline";
|
||||
import { StatusBadge } from "@/components/StatusBadge";
|
||||
import { Button } from "@/components/ui/button";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"use client";
|
||||
|
||||
import { useRouter } from "next/navigation";
|
||||
import { useAuth } from "@/store/useAuth";
|
||||
import { useAuth } from "@/hooks/useAuth";
|
||||
import { Avatar, AvatarFallback } from "@/components/ui/avatar";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { Badge } from "@/components/ui/badge";
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
||||
import { useState, useEffect } from "react";
|
||||
import { useAuth } from "@/store/useAuth";
|
||||
import { useAuth } from "@/hooks/useAuth";
|
||||
|
||||
function AuthInitializer({ children }: { children: React.ReactNode }) {
|
||||
const initialize = useAuth((s) => s.initialize);
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
import Link from "next/link";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { useAuth } from "@/store/useAuth";
|
||||
import { useAuth } from "@/hooks/useAuth";
|
||||
import { Avatar, AvatarFallback } from "@/components/ui/avatar";
|
||||
import {
|
||||
DropdownMenu,
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
import { useState } from "react";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { useAuth } from "@/store/useAuth";
|
||||
import { useAuth } from "@/hooks/useAuth";
|
||||
|
||||
export function useLoginForm() {
|
||||
const router = useRouter();
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
import { useState } from "react";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { useAuth } from "@/store/useAuth";
|
||||
import { useAuth } from "@/hooks/useAuth";
|
||||
|
||||
export function useRegisterForm() {
|
||||
const router = useRouter();
|
||||
|
||||
Reference in New Issue
Block a user