refactor: remove unused components and files related to date filtering and doctor search

- Deleted Date.js and FilterDate.js components as they are no longer needed.
- Removed SearchDoctor.js component which was responsible for searching doctors.
- Cleaned up the Head component by removing references to the deleted Date and SearchDoctor components.
- Removed TurnsPage component and its associated List component, which were not utilized.
- Deleted Cards and Table components from the list directory as they were not in use.
- Removed user account related components including Tab, Head, and Form components.
- Cleaned up bank account components including List, Item, and modal components.
- Removed representation adapters and related functions that were not in use.
This commit is contained in:
hamed
2026-06-25 18:14:27 +03:30
parent 537f3e47d5
commit f87110c277
70 changed files with 8 additions and 2911 deletions
+1 -4
View File
@@ -1,14 +1,11 @@
"use client";
import { ThemeProvider } from "next-themes";
import { usePathname } from "next/navigation";
import { useEffect } from "react";
import Cookies from "js-cookie";
import { setAccessToken } from "@/lib/tokenStore";
export function Providers({ children }) {
const router = usePathname();
useEffect(() => {
if (!Cookies.get("userInfo")) return;
fetch("/api/auth/refresh", { method: "POST" })
@@ -21,7 +18,7 @@ export function Providers({ children }) {
return (
<ThemeProvider
attribute={router.includes("/panel") ? "class" : "data-"}
attribute="data-"
defaultTheme="system"
enableSystem
>