Skip to content

Commit 07653ea

Browse files
committed
feat: disabled image optimization and added some deps
1 parent 356dcdd commit 07653ea

File tree

3 files changed

+37
-6
lines changed

3 files changed

+37
-6
lines changed

client/next.config.mjs

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
/** @type {import('next').NextConfig} */
22
const nextConfig = {
33
images: {
4-
remotePatterns: [
5-
{
6-
protocol: 'https',
7-
hostname: 'ui-avatars.com',
8-
}
9-
]
4+
unoptimized: true,
105
}
116
};
127

client/package.json

+5
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,20 @@
1414
"@radix-ui/react-collapsible": "^1.0.3",
1515
"@radix-ui/react-dialog": "^1.0.5",
1616
"@radix-ui/react-label": "^2.0.2",
17+
"@radix-ui/react-popover": "^1.0.7",
18+
"@radix-ui/react-icons": "^1.3.0",
1719
"@radix-ui/react-separator": "^1.0.3",
1820
"@radix-ui/react-slot": "^1.0.2",
21+
"axios": "^1.6.8",
1922
"class-variance-authority": "^0.7.0",
2023
"clsx": "^2.1.0",
2124
"lucide-react": "^0.363.0",
2225
"next": "14.1.4",
26+
"next-themes": "^0.3.0",
2327
"react": "^18",
2428
"react-dom": "^18",
2529
"react-icons": "^5.0.1",
30+
"swr": "^2.2.5",
2631
"tailwind-merge": "^2.2.2",
2732
"tailwindcss-animate": "^1.0.7",
2833
"zod": "^3.22.4"

client/src/components/ui/popover.tsx

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
"use client"
2+
3+
import * as React from "react"
4+
import * as PopoverPrimitive from "@radix-ui/react-popover"
5+
6+
import { cn } from "~/lib/utils"
7+
8+
const Popover = PopoverPrimitive.Root
9+
10+
const PopoverTrigger = PopoverPrimitive.Trigger
11+
12+
const PopoverContent = React.forwardRef<
13+
React.ElementRef<typeof PopoverPrimitive.Content>,
14+
React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>
15+
>(({ className, align = "center", sideOffset = 4, ...props }, ref) => (
16+
<PopoverPrimitive.Portal>
17+
<PopoverPrimitive.Content
18+
ref={ref}
19+
align={align}
20+
sideOffset={sideOffset}
21+
className={cn(
22+
"z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
23+
className
24+
)}
25+
{...props}
26+
/>
27+
</PopoverPrimitive.Portal>
28+
))
29+
PopoverContent.displayName = PopoverPrimitive.Content.displayName
30+
31+
export { Popover, PopoverTrigger, PopoverContent }

0 commit comments

Comments
 (0)