fix: don't propagate errors on user page to root
This commit is contained in:
parent
d524f927a4
commit
e6a66d5804
1 changed files with 7 additions and 0 deletions
|
|
@ -13,6 +13,7 @@ import { ClientOnly } from 'remix-utils/client-only';
|
||||||
import Attribute from '~/components/Attribute';
|
import Attribute from '~/components/Attribute';
|
||||||
import Card from '~/components/Card';
|
import Card from '~/components/Card';
|
||||||
import StatusCircle from '~/components/StatusCircle';
|
import StatusCircle from '~/components/StatusCircle';
|
||||||
|
import { ErrorPopup } from '~/components/Error';
|
||||||
import { toast } from '~/components/Toaster';
|
import { toast } from '~/components/Toaster';
|
||||||
import type { Machine, User } from '~/types';
|
import type { Machine, User } from '~/types';
|
||||||
import { cn } from '~/utils/cn';
|
import { cn } from '~/utils/cn';
|
||||||
|
|
@ -319,3 +320,9 @@ function UserCard({ user, magic }: CardProps) {
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function ErrorBoundary() {
|
||||||
|
return (
|
||||||
|
<ErrorPopup type="embedded" />
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue