Browse Source

ref(js): Avoid usage of deprecated ReactNodeArray type (#32610)

Evan Purkhiser 3 years ago
parent
commit
26ec4ce3fe
1 changed files with 1 additions and 1 deletions
  1. 1 1
      static/app/locale.tsx

+ 1 - 1
static/app/locale.tsx

@@ -84,7 +84,7 @@ function getClient(): Jed | null {
  * printf style string formatting which render as react nodes.
  */
 function formatForReact(formatString: string, args: FormatArg[]): React.ReactNode[] {
-  const nodes: React.ReactNodeArray = [];
+  const nodes: React.ReactNode[] = [];
   let cursor = 0;
 
   // always re-parse, do not cache, because we change the match