place error boundaries closer to the source

This commit is contained in:
Ben Phelps committed 2022-10-05 13:43:22 +03:00
1 parent 88c774339d
commit ea96999377
6 files changed
+31 -21

No files matched your search

+1 -2
View File
@@ -1,6 +1,5 @@
import classNames from "classnames";
import ErrorBoundary from "components/errorboundry";
import List from "components/services/list";
export default function ServicesGroup({ services, layout }) {
@@ -13,7 +12,7 @@ export default function ServicesGroup({ services, layout }) {
)}
>
<h2 className="text-theme-800 dark:text-theme-300 text-xl font-medium">{services.name}</h2>
<ErrorBoundary><List services={services.services} layout={layout} /></ErrorBoundary>
<List services={services.services} layout={layout} />
</div>
);
}