Skip to content

Commit 98d268a

Browse files
authored
chore(examples): cleanup the start-supabase-basic example (#4494)
1 parent 5f27e08 commit 98d268a

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

examples/react/start-supabase-basic/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
"devDependencies": {
2626
"@types/react": "^19.0.8",
2727
"@types/react-dom": "^19.0.3",
28-
"postcss": "^8.5.1",
2928
"autoprefixer": "^10.4.20",
29+
"postcss": "^8.5.1",
3030
"tailwindcss": "^3.4.17",
3131
"typescript": "^5.7.2",
3232
"vite": "^6.3.5",

examples/react/start-supabase-basic/src/components/NotFound.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Link } from '@tanstack/react-router'
22

3-
export function NotFound({ children }: { children?: any }) {
3+
export function NotFound({ children }: { children?: React.ReactNode }) {
44
return (
55
<div className="space-y-2 p-2">
66
<div className="text-gray-600 dark:text-gray-400">

examples/react/start-supabase-basic/src/hooks/useMutation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ export function useMutation<TVariables, TData, TError = Error>(opts: {
2525
setError(undefined)
2626
setData(data)
2727
return data
28-
} catch (err: any) {
28+
} catch (err) {
2929
setStatus('error')
30-
setError(err)
30+
setError(err as TError)
3131
}
3232
},
3333
[opts.fn],

examples/react/start-supabase-basic/src/utils/supabase.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ export function getSupabaseServerClient() {
77
process.env.SUPABASE_ANON_KEY!,
88
{
99
cookies: {
10-
// @ts-ignore Wait till Supabase overload works
1110
getAll() {
1211
return Object.entries(parseCookies()).map(([name, value]) => ({
1312
name,

0 commit comments

Comments
 (0)