Skip to content

Commit

Permalink
add: NSA, NUQS, Zu, RHF
Browse files Browse the repository at this point in the history
  • Loading branch information
McPizza0 committed Jan 25, 2025
1 parent 66892d6 commit 8dd1e48
Show file tree
Hide file tree
Showing 5 changed files with 1,537 additions and 7 deletions.
9 changes: 8 additions & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,21 @@
"@flow/database": "workspace:*",
"@flow/utils": "workspace:*",
"@radix-ui/react-slot": "^1.1.1",
"@react-email/components": "0.0.32",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"lucide-react": "^0.474.0",
"next": "15.1.6",
"next-safe-action": "^7.10.2",
"next-themes": "^0.4.4",
"nuqs": "^2.3.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-hook-form": "^7.54.2",
"tailwind-merge": "^2.6.0",
"tailwindcss-animate": "^1.0.7"
"tailwindcss-animate": "^1.0.7",
"zod": "^3.23.8",
"zustand": "^5.0.3"
},
"devDependencies": {
"@eslint/eslintrc": "^3",
Expand All @@ -31,6 +37,7 @@
"eslint": "^9",
"eslint-config-next": "15.1.6",
"postcss": "^8",
"react-email": "3.0.6",
"tailwindcss": "^3.4.1",
"typescript": "^5"
}
Expand Down
3 changes: 2 additions & 1 deletion apps/web/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { ThemeProvider } from '@/components/theme-provider';
import { NuqsAdapter } from 'nuqs/adapters/next/app';
import { Geist, Geist_Mono } from 'next/font/google';
import type { Metadata } from 'next';
import './globals.css';
Expand Down Expand Up @@ -32,7 +33,7 @@ export default function RootLayout({
defaultTheme="dark"
enableSystem
disableTransitionOnChange>
{children}
<NuqsAdapter>{children}</NuqsAdapter>
</ThemeProvider>
</body>
</html>
Expand Down
14 changes: 14 additions & 0 deletions apps/web/src/emails/my-email.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Button, Html } from '@react-email/components';
import * as React from 'react';

export default function Email() {
return (
<Html>
<Button
href="https://example.com"
style={{ background: '#000', color: '#fff', padding: '12px 20px' }}>
Click me
</Button>
</Html>
);
}
3 changes: 3 additions & 0 deletions apps/web/src/lib/safe-actions.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { createSafeActionClient } from 'next-safe-action';

export const actionClient = createSafeActionClient();
Loading

0 comments on commit 8dd1e48

Please sign in to comment.