mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-10 15:28:47 +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,5 +1,6 @@
|
|||
import classNames from "classnames";
|
||||
|
||||
import ErrorBoundary from "components/errorboundry";
|
||||
import List from "components/services/list";
|
||||
|
||||
export default function ServicesGroup({ services, layout }) {
|
||||
|
@ -12,7 +13,7 @@ export default function ServicesGroup({ services, layout }) {
|
|||
)}
|
||||
>
|
||||
<h2 className="text-theme-800 dark:text-theme-300 text-xl font-medium">{services.name}</h2>
|
||||
<List services={services.services} layout={layout} />
|
||||
<ErrorBoundary><List services={services.services} layout={layout} /></ErrorBoundary>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue