Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d165d76 commit 78283cfCopy full SHA for 78283cf
site/src/components/RuntimeErrorState/createCtas.tsx
@@ -48,9 +48,10 @@ const ReloadAppButton = (): ReactElement => {
48
* createCtas generates an array of buttons to be used with our error boundary UI
49
*/
50
export const createCtas = (codeBlock: string[]): ReactElement[] => {
51
- // REMARK: we don't have to worry about key order changing
52
- // eslint-disable-next-line react/jsx-key
53
- return [<CopyStackButton text={codeBlock.join("\r\n")} />, <ReloadAppButton />]
+ return [
+ <CopyStackButton key="copy-stack-btn" text={codeBlock.join("\r\n")} />,
+ <ReloadAppButton key="reload-app-btn" />,
54
+ ]
55
}
56
57
const useStyles = makeStyles((theme) => ({
0 commit comments