prettier setup

This commit is contained in:
Om Lanke
2025-06-30 11:55:48 +05:30
parent 99220fb9a9
commit ba6ee585dc
63 changed files with 3950 additions and 2115 deletions

View File

@@ -1,6 +1,6 @@
"use client";
import { signIn } from "@workspace/auth";
import { Button } from "@workspace/ui/components/button";
'use client';
import { signIn } from '@workspace/auth';
import { Button } from '@workspace/ui/components/button';
export default function Login({ action }: { action: () => Promise<void> }) {
return (

View File

@@ -1,16 +1,11 @@
"use client";
'use client';
import * as React from "react";
import { ThemeProvider as NextThemesProvider } from "next-themes";
import * as React from 'react';
import { ThemeProvider as NextThemesProvider } from 'next-themes';
export function Providers({ children }: { children: React.ReactNode }) {
return (
<NextThemesProvider
attribute="class"
defaultTheme="system"
enableSystem
enableColorScheme
>
<NextThemesProvider attribute="class" defaultTheme="system" enableSystem enableColorScheme>
{children}
</NextThemesProvider>
);

View File

@@ -1,5 +1,5 @@
import { Button } from "@workspace/ui/components/button";
import { auth } from "@workspace/auth";
import { Button } from '@workspace/ui/components/button';
import { auth } from '@workspace/auth';
export default async function Studs({
action,
@@ -12,7 +12,9 @@ export default async function Studs({
if (!session?.user) return null;
return (
<div className="flex gap-2">
<Button onClick={action} variant="outline">Click me</Button>
<Button onClick={action} variant="outline">
Click me
</Button>
<Button onClick={logOut}>Sign Out</Button>
</div>
);