Skip to content

Commit dc51942

Browse files
committed
feat: update turbo
1 parent d4ad320 commit dc51942

File tree

5 files changed

+8532
-6853
lines changed

5 files changed

+8532
-6853
lines changed

apps/web/tailwind.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import tailwindConfig from "tailwind-config/tailwind.config.js";
22

3-
module.exports = {
3+
export default {
44
...tailwindConfig,
5-
}
5+
};

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"husky": "^9.0.6",
1818
"prettier": "^3.0.0",
1919
"prettier-plugin-tailwindcss": "^0.5.1",
20-
"turbo": "latest",
21-
"tailwind-config": "workspace:*"
20+
"tailwind-config": "workspace:*",
21+
"turbo": "^2.3.3"
2222
},
2323
"packageManager": "[email protected]",
2424
"name": "codeforstartup",

packages/ui/@/components/ui/menubar.tsx

Lines changed: 19 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"use client"
22

33
import * as React from "react"
4+
45
import * as MenubarPrimitive from "@radix-ui/react-menubar"
56
import { Check, ChevronRight, Circle } from "lucide-react"
67

@@ -85,26 +86,21 @@ MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName
8586
const MenubarContent = React.forwardRef<
8687
React.ElementRef<typeof MenubarPrimitive.Content>,
8788
React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Content>
88-
>(
89-
(
90-
{ className, align = "start", alignOffset = -4, sideOffset = 8, ...props },
91-
ref
92-
) => (
93-
<MenubarPrimitive.Portal>
94-
<MenubarPrimitive.Content
95-
ref={ref}
96-
align={align}
97-
alignOffset={alignOffset}
98-
sideOffset={sideOffset}
99-
className={cn(
100-
"z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in 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",
101-
className
102-
)}
103-
{...props}
104-
/>
105-
</MenubarPrimitive.Portal>
106-
)
107-
)
89+
>(({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => (
90+
<MenubarPrimitive.Portal>
91+
<MenubarPrimitive.Content
92+
ref={ref}
93+
align={align}
94+
alignOffset={alignOffset}
95+
sideOffset={sideOffset}
96+
className={cn(
97+
"z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in 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",
98+
className
99+
)}
100+
{...props}
101+
/>
102+
</MenubarPrimitive.Portal>
103+
))
108104
MenubarContent.displayName = MenubarPrimitive.Content.displayName
109105

110106
const MenubarItem = React.forwardRef<
@@ -178,11 +174,7 @@ const MenubarLabel = React.forwardRef<
178174
>(({ className, inset, ...props }, ref) => (
179175
<MenubarPrimitive.Label
180176
ref={ref}
181-
className={cn(
182-
"px-2 py-1.5 text-sm font-semibold",
183-
inset && "pl-8",
184-
className
185-
)}
177+
className={cn("px-2 py-1.5 text-sm font-semibold", inset && "pl-8", className)}
186178
{...props}
187179
/>
188180
))
@@ -200,16 +192,10 @@ const MenubarSeparator = React.forwardRef<
200192
))
201193
MenubarSeparator.displayName = MenubarPrimitive.Separator.displayName
202194

203-
const MenubarShortcut = ({
204-
className,
205-
...props
206-
}: React.HTMLAttributes<HTMLSpanElement>) => {
195+
const MenubarShortcut = ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>) => {
207196
return (
208197
<span
209-
className={cn(
210-
"ml-auto text-xs tracking-widest text-muted-foreground",
211-
className
212-
)}
198+
className={cn("ml-auto text-xs tracking-widest text-muted-foreground", className)}
213199
{...props}
214200
/>
215201
)

0 commit comments

Comments
 (0)