Skip to content

Commit 20fd7ff

Browse files
Move comment for clarity
1 parent c2a4284 commit 20fd7ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/ButtonWithLoading.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { Button, ButtonProps } from "@chakra-ui/react";
22
import { flags } from "../flags";
33

4-
// Workaround to avoid error caused by DOM changes when doing in-context translations.
54
export const ButtonWithLoading = ({ isLoading, ...props }: ButtonProps) => {
65
return (
76
<Button
87
{...props}
8+
// Workaround to avoid error caused by DOM changes when doing in-context translations.
99
isLoading={isLoading && !flags.translate}
1010
disabled={isLoading}
1111
/>

0 commit comments

Comments
 (0)