Skip to content

Commit f2b8e28

Browse files
committed
docs: fix typecheck
1 parent f3cec52 commit f2b8e28

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

website/components/framework-select.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export function FrameworkSelect() {
2323
fontWeight="semibold"
2424
color="text-primary-bold"
2525
defaultValue={framework}
26-
onChange={(event) => {
26+
onChange={(event: React.ChangeEvent<HTMLSelectElement>) => {
2727
const newFramework = event.currentTarget.value as Framework
2828
setFramework?.(newFramework)
2929
if (asPath.includes(framework) && newFramework !== framework) {

website/components/machines/toast.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export function ToastGroup(props: { controls: any }) {
4747
})
4848

4949
const api = toast.group.connect(service, normalizeProps)
50-
const id = useRef<string>()
50+
const id = useRef<string | undefined>(undefined)
5151

5252
return (
5353
<>

website/components/machines/tree-view.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { normalizeProps, useMachine } from "@zag-js/react"
22
import * as tree from "@zag-js/tree-view"
33
import { LuFile, LuFolder, LuChevronRight } from "react-icons/lu"
4-
import { useId } from "react"
4+
import { JSX, useId } from "react"
55

66
interface Node {
77
id: string

website/components/playground.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Box, Flex, HStack, Stack } from "@chakra-ui/layout"
22
import { chakra } from "@chakra-ui/system"
33
import { openInStackblitz } from "lib/open-in-stackblitz"
4-
import { useState } from "react"
4+
import { JSX, useState } from "react"
55
import { SiStackblitz } from "react-icons/si"
66

77
const Header = (props: any) => (
@@ -164,7 +164,7 @@ export function Playground(props: PlaygroundProps) {
164164
type="text"
165165
defaultValue={value as any}
166166
bg="bg-subtle"
167-
onChange={(e) => {
167+
onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
168168
setState({ ...state, [key]: e.target.value })
169169
}}
170170
/>
@@ -184,7 +184,7 @@ export function Playground(props: PlaygroundProps) {
184184
px="2"
185185
bg="bg-subtle"
186186
defaultValue={state[key] as number}
187-
onChange={(e) => {
187+
onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
188188
const val = e.currentTarget.valueAsNumber
189189
setState((s) => ({ ...s, [key]: isNaN(val) ? 0 : val }))
190190
}}
@@ -205,7 +205,7 @@ export function Playground(props: PlaygroundProps) {
205205
px="1"
206206
bg="bg-subtle"
207207
defaultValue={state[key] as any}
208-
onChange={(e) => {
208+
onChange={(e: React.ChangeEvent<HTMLSelectElement>) => {
209209
setState((s) => ({ ...s, [key]: e.target.value }))
210210
}}
211211
>

website/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
},
1818
"dependencies": {
1919
"@internationalized/date": "3.7.0",
20-
"@chakra-ui/cli": "2.4.1",
20+
"@chakra-ui/cli": "3.11.0",
2121
"@chakra-ui/icon": "3.2.0",
2222
"@chakra-ui/layout": "2.3.1",
2323
"@chakra-ui/provider": "2.4.2",
2424
"@chakra-ui/system": "2.6.2",
25-
"@chakra-ui/theme": "3.3.1",
25+
"@chakra-ui/theme": "3.4.6",
2626
"@emotion/react": "11.14.0",
2727
"@emotion/styled": "11.14.0",
2828
"@stackblitz/sdk": "^1.11.0",

0 commit comments

Comments
 (0)