Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion packages/console/src/app/space/[did]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { useW3 } from '@storacha/ui-react'
import { DidIcon } from '@/components/DidIcon'
import { Nav, NavLink } from '@/components/Nav'
import { QueueListIcon, ShareIcon, CloudArrowUpIcon } from '@heroicons/react/24/outline'
import Link from 'next/link'

interface LayoutProps extends PropsWithChildren {
params: {
Expand All @@ -23,7 +24,10 @@ export default function Layout ({children, params}: LayoutProps): JSX.Element {
const space = spaces.find(s => s.did() === spaceDID)
if (!space) {
console.warn(`not a known space to this agent: ${spaceDID}`)
return <div />
return <div className='text-center text-2xl text-hot-red flex flex-col gap-4'>
<h1>Space not found: {spaceDID}</h1>
<Link href='/' className="underline">Back to spaces</Link>
</div>
}

return (
Expand Down
Loading