docs: update to next 15 + eslint 9 (#9839)

* update next

* updated react

* update eslint

* finish updating eslint

* fix content lint errors

* fix docs test

* fix vale action

* fix installation errors
This commit is contained in:
Shahed Nasser
2024-11-13 17:03:17 +02:00
committed by GitHub
parent 6f7467f071
commit 938f3bd934
143 changed files with 4193 additions and 3226 deletions
@@ -28,7 +28,7 @@ export function ComponentExample({
}, [name])
const CodeElement = children as React.ReactElement
const Code = CodeElement.props.code
const Code = (CodeElement.props as Record<string, string>).code
return (
<div className="relative my-4 flex flex-col space-y-2" {...props}>
+2 -2
View File
@@ -8,7 +8,7 @@ import * as React from "react"
const iconNames = Object.keys(Icons).filter((name) => name !== "default")
const IconSearch = React.memo(function IconSearch() {
const IconSearch = () => {
const [query, setQuery] = React.useState<string | undefined>("")
return (
@@ -23,7 +23,7 @@ const IconSearch = React.memo(function IconSearch() {
</Container>
</div>
)
})
}
const SearchResults = ({ query = "" }: { query?: string }) => {
const cleanQuery = escapeStringRegexp(query.trim().replace(/\s/g, " "))