mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-18 10:39:49 +00:00
Add ErrorBoundary component
- wrap a myriad of components in ErrorBoundary resolves #270
This commit is contained in:
parent
07a28c0841
commit
962e6e576c
5 changed files with 52 additions and 7 deletions
|
@ -1,10 +1,11 @@
|
|||
import ErrorBoundary from "components/errorboundry";
|
||||
import List from "components/bookmarks/list";
|
||||
|
||||
export default function BookmarksGroup({ group }) {
|
||||
return (
|
||||
<div key={group.name} className="basis-full md:basis-1/2 lg:basis-1/3 xl:basis-1/4 flex-1 p-1">
|
||||
<h2 className="text-theme-800 dark:text-theme-300 text-xl font-medium">{group.name}</h2>
|
||||
<List bookmarks={group.bookmarks} />
|
||||
<ErrorBoundary><List bookmarks={group.bookmarks} /></ErrorBoundary>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue