KiDxS / GateKeeper

Avoid .bind() or local functions in JSX properties JS-0417
Performance
Major
a year ago2 years old
JSX props should not use arrow functions
 85                    <Stack spacing={2}>
 86                        <Flex direction="row" justifyContent="space-between">
 87                            <Heading>Public Key</Heading>
 88                            <Button onClick={onCopyPubKey} size="sm"> 89                                <Icon as={IoClipboard} />{" "}
 90                                {hasCopiedPubKey
 91                                    ? "Copied"
JSX props should not use arrow functions
 72                    <Stack spacing={2}>
 73                        <Flex direction="row" justifyContent="space-between">
 74                            <Heading>Private Key</Heading>
 75                            <Button onClick={onCopyPrivKey} size="sm"> 76                                <Icon as={IoClipboard} />{" "}
 77                                {hasCopiedPrivKey
 78                                    ? "Copied"
JSX props should not use arrow functions
49                <Stack direction="row" spacing={7} alignItems="center">
50                    <Link href="/dashboard">Dashboard</Link>
51                    <Link href="/change-password">Change Password</Link>
52                    <Button variant="link" onClick={handleLogout} color="body">53                        Logout
54                    </Button>
55
JSX props should not use arrow functions
58                            </Button>
59                            <Button
60                                colorScheme="red"
61                                onClick={() => mutation.mutate(props.labelID)}62                                ml={3}
63                            >
64                                Delete
JSX props should not use arrow functions
102                                    type="submit"
103                                    colorScheme="blue"
104                                    ml={3}
105                                    onClick={onClosing}106                                    isLoading={isSubmitting}
107                                    is
108                                >