mirror of
https://github.com/supabase/supabase.git
synced 2026-07-03 04:24:20 +08:00
* Move all studio files from /studio to /apps/studio. * Move studio specific prettier ignores. * Fix the ui references from studio. * Fix the css imports. * Fix all package.json issues. * Fix the prettier setup for the studio app. * Add .turbo folder to prettierignore. * Fix the github workflows.
33 lines
1.1 KiB
TypeScript
33 lines
1.1 KiB
TypeScript
import Link from 'next/link'
|
|
import { useEffect } from 'react'
|
|
import { Button } from 'ui'
|
|
|
|
export default function EmptyPageState({ error }: any) {
|
|
useEffect(() => {
|
|
console.error('Error', error)
|
|
}, [])
|
|
|
|
return (
|
|
<div className="mx-auto flex h-full w-full flex-col items-center justify-center space-y-6">
|
|
<div className="flex w-[320px] flex-col items-center justify-center space-y-3">
|
|
<h4 className="text-lg">Something went wrong 🤕</h4>
|
|
<p className="text-center text-sm text-foreground-light">
|
|
Sorry about that, please try again later or feel free to reach out to us if the problem
|
|
persists.
|
|
</p>
|
|
</div>
|
|
<div className="flex items-center space-x-4">
|
|
<Button asChild>
|
|
<Link href="/projects">Head back</Link>
|
|
</Button>
|
|
<Button asChild type="secondary">
|
|
<Link href="/support/new">Submit a support request</Link>
|
|
</Button>
|
|
</div>
|
|
<p className="text-sm text-foreground-light">
|
|
Error: [{error?.code}] {error?.message}
|
|
</p>
|
|
</div>
|
|
)
|
|
}
|