mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-10 04:19:32 +00:00
chore: cleanup
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import React from "react";
|
||||
import { useId } from "react";
|
||||
|
||||
export function Features() {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"use client";
|
||||
|
||||
import React, { useState } from "react";
|
||||
import { Highlight, themes } from "prism-react-renderer";
|
||||
import { useState } from "react";
|
||||
import { Highlight } from "prism-react-renderer";
|
||||
import { Check, Copy } from "lucide-react";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import theme from "./theme";
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import React from "react";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { X } from "lucide-react";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import React, { useState } from "react";
|
||||
import { useState } from "react";
|
||||
import { TabBar } from "./tab-bar";
|
||||
import { CodeEditor } from "./code-editor";
|
||||
import { useAtom } from "jotai";
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import React from "react";
|
||||
import { CodeTab } from "./code-tabs";
|
||||
|
||||
interface File {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ChevronLeft, Copy, Mail, Moon, PlusIcon, Sun } from "lucide-react";
|
||||
import { Moon, PlusIcon, Sun } from "lucide-react";
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -28,8 +28,6 @@ import { useAtom } from "jotai";
|
||||
import { optionsAtom } from "./store";
|
||||
import { useTheme } from "next-themes";
|
||||
import { ScrollArea } from "../ui/scroll-area";
|
||||
import { Button } from "../ui/button";
|
||||
import Link from "next/link";
|
||||
const frameworks = [
|
||||
{
|
||||
title: "Next.js",
|
||||
|
||||
@@ -12,10 +12,8 @@ import {
|
||||
import { Checkbox } from "@/components/ui/checkbox";
|
||||
import { Input } from "@/components/ui/input";
|
||||
import { Label } from "@/components/ui/label";
|
||||
import { Key, Loader2 } from "lucide-react";
|
||||
import { Key } from "lucide-react";
|
||||
import Link from "next/link";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { useState } from "react";
|
||||
import { useAtom } from "jotai";
|
||||
import { optionsAtom } from "./store";
|
||||
import { socialProviders } from "./social-provider";
|
||||
|
||||
@@ -14,7 +14,6 @@ import { Label } from "@/components/ui/label";
|
||||
import { useState } from "react";
|
||||
import Image from "next/image";
|
||||
import { Loader2, X } from "lucide-react";
|
||||
import { toast } from "sonner";
|
||||
import { useRouter } from "next/navigation";
|
||||
|
||||
export function SignUp() {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
"use client";
|
||||
import React from "react";
|
||||
|
||||
import {
|
||||
Globe2Icon,
|
||||
|
||||
@@ -11,7 +11,6 @@ import { Highlight, themes } from "prism-react-renderer";
|
||||
import { AnimatePresence, motion, MotionConfig } from "framer-motion";
|
||||
import { Builder } from "../builder";
|
||||
import { Spotlight } from "./spotlight";
|
||||
import { DropdownMenu, DropdownMenuTrigger } from "../ui/dropdown-menu";
|
||||
import { GradientBG } from "./gradient-bg";
|
||||
|
||||
const tabs: { name: "auth.ts" | "client.ts"; code: string }[] = [
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import React from "react";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
type SpotlightProps = {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import { Card, CardContent } from "@/components/ui/card";
|
||||
import {
|
||||
Table,
|
||||
TableBody,
|
||||
@@ -8,8 +7,7 @@ import {
|
||||
TableRow,
|
||||
} from "@/components/ui/table";
|
||||
import { Badge } from "@/components/ui/badge";
|
||||
import { CircleDot, Key, Link } from "lucide-react";
|
||||
import { Label } from "../ui/label";
|
||||
import { Key, Link } from "lucide-react";
|
||||
import {
|
||||
Tooltip,
|
||||
TooltipContent,
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import React from "react";
|
||||
import Link from "next/link";
|
||||
import { ThemeToggle } from "@/components/theme-toggler";
|
||||
import { NavbarMobile, NavbarMobileBtn } from "./nav-mobile";
|
||||
|
||||
@@ -1,13 +1,7 @@
|
||||
"use client";
|
||||
import { Menu, Sun, X } from "lucide-react";
|
||||
import { Menu } from "lucide-react";
|
||||
import Link from "next/link";
|
||||
import {
|
||||
Fragment,
|
||||
createContext,
|
||||
useContext,
|
||||
useEffect,
|
||||
useState,
|
||||
} from "react";
|
||||
import { Fragment, createContext, useContext, useState } from "react";
|
||||
import {
|
||||
Accordion,
|
||||
AccordionContent,
|
||||
@@ -16,7 +10,7 @@ import {
|
||||
} from "@/components/ui/accordion";
|
||||
import { AnimatePresence, FadeIn } from "@/components/ui/fade-in";
|
||||
import { contents, examples } from "./sidebar-content";
|
||||
import { MobileThemeToggle, ThemeToggle } from "./theme-toggler";
|
||||
import { MobileThemeToggle } from "./theme-toggler";
|
||||
import { usePathname } from "next/navigation";
|
||||
|
||||
interface NavbarMobileContextProps {
|
||||
|
||||
@@ -17,10 +17,6 @@ import {
|
||||
} from "./ui/select";
|
||||
import { loglib } from "@loglib/tracker";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { GitHubIcon } from "@/app/changelogs/_components/icons";
|
||||
import Link from "next/link";
|
||||
import { Button } from "./ui/button";
|
||||
import { Separator } from "./ui/separator";
|
||||
|
||||
export default function ArticleLayout() {
|
||||
const [currentOpen, setCurrentOpen] = useState<number>(0);
|
||||
|
||||
@@ -1,13 +1,10 @@
|
||||
import {
|
||||
Chrome,
|
||||
CircleHelp,
|
||||
Key,
|
||||
LucideAArrowDown,
|
||||
LucideIcon,
|
||||
Mail,
|
||||
Mailbox,
|
||||
MailboxIcon,
|
||||
Mails,
|
||||
Phone,
|
||||
ScanFace,
|
||||
ShieldCheck,
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
"use client";
|
||||
|
||||
import { Moon, MoonIcon, Sun } from "lucide-react";
|
||||
import { Moon, Sun } from "lucide-react";
|
||||
import { useTheme } from "next-themes";
|
||||
import * as React from "react";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import {
|
||||
DropdownMenu,
|
||||
|
||||
@@ -2,11 +2,6 @@
|
||||
|
||||
import * as React from "react";
|
||||
import * as RechartsPrimitive from "recharts";
|
||||
import {
|
||||
NameType,
|
||||
Payload,
|
||||
ValueType,
|
||||
} from "recharts/types/component/DefaultTooltipContent";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
"use client";
|
||||
import React, { useId, useMemo } from "react";
|
||||
import { useId } from "react";
|
||||
import { useEffect, useState } from "react";
|
||||
import Particles, { initParticlesEngine } from "@tsparticles/react";
|
||||
import type { Container, SingleOrMultiple } from "@tsparticles/engine";
|
||||
|
||||
Reference in New Issue
Block a user