Skip to content

Commit c5f67e7

Browse files
author
Thomas Wang
committed
lint fix
1 parent b8607ba commit c5f67e7

File tree

1 file changed

+22
-6
lines changed

1 file changed

+22
-6
lines changed

packages/webview-common/src/components/wordInput.tsx

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { AnimatePresence, motion } from 'motion/react';
22
import { useCallback, useEffect, useRef, useState } from 'react';
33
import { cn } from '@hotandcold/webview-common/utils';
44
import { PrimaryButton } from './button';
5-
import { useWordSubmission } from '@hotandcold/classic-webview/src/hooks/useGame';
5+
import { useWordSubmission } from '@hotandcold/classic-webview/src/hooks/useWordSubmission';
66

77
type PixelData = {
88
x: number;
@@ -12,11 +12,27 @@ type PixelData = {
1212
};
1313

1414
// Spinning loading indicator component
15-
const SpinningCircle = ({ className = "h-5 w-5 text-white" }: { className?: string }) => (
16-
<div className="flex items-center justify-center h-5 w-5">
17-
<svg className={`animate-spin ${className}`} xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
18-
<circle className="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" strokeWidth="4"></circle>
19-
<path className="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
15+
const SpinningCircle = ({ className = 'h-5 w-5 text-white' }: { className?: string }) => (
16+
<div className="flex h-5 w-5 items-center justify-center">
17+
<svg
18+
className={`animate-spin ${className}`}
19+
xmlns="http://www.w3.org/2000/svg"
20+
fill="none"
21+
viewBox="0 0 24 24"
22+
>
23+
<circle
24+
className="opacity-25"
25+
cx="12"
26+
cy="12"
27+
r="10"
28+
stroke="currentColor"
29+
strokeWidth="4"
30+
></circle>
31+
<path
32+
className="opacity-75"
33+
fill="currentColor"
34+
d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
35+
></path>
2036
</svg>
2137
</div>
2238
);

0 commit comments

Comments
 (0)