Skip to content

Commit 68e1c56

Browse files
authored
chore(www): update deps and fix CI errors (#204)
1 parent acf4ae7 commit 68e1c56

17 files changed

Lines changed: 4180 additions & 11202 deletions

File tree

.changeset/cold-bikes-exist.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"shadcn-ui": patch
3+
---
4+
5+
update typescript

.husky/pre-commit

Lines changed: 0 additions & 4 deletions
This file was deleted.

apps/www/app/docs/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { docsConfig } from "@/config/docs"
2-
import { DocsSidebarNav } from "@/components/sidebar-nav"
32
import { ScrollArea } from "@/components/ui/scroll-area"
3+
import { DocsSidebarNav } from "@/components/sidebar-nav"
44

55
interface DocsLayoutProps {
66
children: React.ReactNode

apps/www/app/examples/dashboard/components/team-switcher.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const groups = [
6464
},
6565
]
6666

67-
type Team = typeof groups[number]["teams"][number]
67+
type Team = (typeof groups)[number]["teams"][number]
6868

6969
type PopoverTriggerProps = React.ComponentPropsWithoutRef<typeof PopoverTrigger>
7070

apps/www/app/examples/music/data/playlists.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export type Playlist = typeof playlists[number]
1+
export type Playlist = (typeof playlists)[number]
22

33
export const playlists = [
44
"Recently Added",

apps/www/app/examples/playground/data/models.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export const types = ["GPT-3", "Codex"] as const
22

3-
export type ModelType = typeof types[number]
3+
export type ModelType = (typeof types)[number]
44

55
export interface Model<Type = string> {
66
id: string

apps/www/components/examples/sheet/position.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {
1818

1919
const SHEET_POSITIONS = ["top", "right", "bottom", "left"] as const
2020

21-
type SheetPosition = typeof SHEET_POSITIONS[number]
21+
type SheetPosition = (typeof SHEET_POSITIONS)[number]
2222

2323
export function SheetPosition() {
2424
const [position, setPosition] = useState<SheetPosition>("right")

apps/www/components/examples/sheet/size.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {
1818

1919
const SHEET_SIZES = ["sm", "default", "lg", "xl", "full", "content"] as const
2020

21-
type SheetSize = typeof SHEET_SIZES[number]
21+
type SheetSize = (typeof SHEET_SIZES)[number]
2222

2323
export function SheetSize() {
2424
const [size, setSize] = useState<SheetSize>("default")

apps/www/components/pager.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { Doc } from "contentlayer/generated"
33
import { NavItem, NavItemWithChildren } from "types/nav"
44

55
import { docsConfig } from "@/config/docs"
6-
import { Icons } from "@/components/icons"
76
import { buttonVariants } from "@/components/ui/button"
7+
import { Icons } from "@/components/icons"
88

99
interface DocsPagerProps {
1010
doc: Doc

apps/www/components/toc.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
"use client"
33

44
import * as React from "react"
5-
import { useMounted } from "@/hooks/use-mounted"
65

76
import { TableOfContents } from "@/lib/toc"
87
import { cn } from "@/lib/utils"
8+
import { useMounted } from "@/hooks/use-mounted"
99

1010
interface TocProps {
1111
toc: TableOfContents

0 commit comments

Comments
 (0)