File tree Expand file tree Collapse file tree 1 file changed +22
-6
lines changed
packages/webview-common/src/components Expand file tree Collapse file tree 1 file changed +22
-6
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { AnimatePresence, motion } from 'motion/react';
22import { useCallback , useEffect , useRef , useState } from 'react' ;
33import { cn } from '@hotandcold/webview-common/utils' ;
44import { PrimaryButton } from './button' ;
5- import { useWordSubmission } from '@hotandcold/classic-webview/src/hooks/useGame ' ;
5+ import { useWordSubmission } from '@hotandcold/classic-webview/src/hooks/useWordSubmission ' ;
66
77type 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) ;
You can’t perform that action at this time.
0 commit comments