From cf8debc67e479e631244531b134ea0606b415ad3 Mon Sep 17 00:00:00 2001 From: Zachary Belford Date: Thu, 28 Nov 2024 17:05:43 -0800 Subject: [PATCH] fix(docs-react): fix eslint errors in Methods Add key prop to ExamplePairings component and remove unnecessary keys from Typography components --- packages/docs-react/src/Methods/Methods.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/docs-react/src/Methods/Methods.tsx b/packages/docs-react/src/Methods/Methods.tsx index e558861..a12feb7 100644 --- a/packages/docs-react/src/Methods/Methods.tsx +++ b/packages/docs-react/src/Methods/Methods.tsx @@ -87,8 +87,8 @@ class Methods extends Component { ) }> }> - {method.name} - {method.summary} + {method.name} + {method.summary} {method.tags && method.tags.length > 0 && @@ -133,6 +133,7 @@ class Methods extends Component { } { } {this.props.methodPlugins && this.props.methodPlugins.length > 0 && - {this.props.methodPlugins.map((CompDef: any) => { + {this.props.methodPlugins.map((CompDef: any, index: number) => { return ( - + ); })}