Browse Source

ref(js): Simplify NoOp route component (#64236)

Evan Purkhiser 1 year ago
parent
commit
c7f5f9e3a2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      static/app/routes.tsx

+ 2 - 2
static/app/routes.tsx

@@ -2575,6 +2575,6 @@ export const routes = memoize(buildRoutes);
 // Exported for use in tests.
 export {buildRoutes};
 
-function NoOp(props: {children: React.ReactNode}) {
-  return <Fragment>{props.children}</Fragment>;
+function NoOp({children}: {children: JSX.Element}) {
+  return children;
 }