diff --git a/src/app/page.tsx b/src/app/page.tsx
index ac72ea7..f8d06d2 100644
--- a/src/app/page.tsx
+++ b/src/app/page.tsx
@@ -17,16 +17,10 @@ import TitleText from '../components/TitleText'
import { pluralize } from '../utils/pluralize'
import TermsAcceptance from '../components/TermsAcceptance'
-function PageWrapper({
- children,
- isRotating = false,
-}: {
- children: React.ReactNode
- isRotating?: boolean
-}): JSX.Element {
+function PageWrapper({ children }: { children: React.ReactNode }): JSX.Element {
return (
-
+
{children}
@@ -101,7 +95,7 @@ function UploadingState({
}): JSX.Element {
const fileListData = useUploaderFileListData(uploadedFiles)
return (
-
+
You are uploading {pluralize(uploadedFiles.length, 'file', 'files')}.
diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx
index 409e8d5..bd5e723 100644
--- a/src/components/Footer.tsx
+++ b/src/components/Footer.tsx
@@ -49,8 +49,10 @@ export function Footer(): JSX.Element {
Cooked up by{' '}
Alex Kern &{' '}
- Neeraj Baid while
- eating Sliver @ UC Berkeley ·{' '}
+
+ Neeraj Baid
+ {' '}
+ while eating Sliver @ UC Berkeley ·{' '}
FAQ
{' '}
diff --git a/src/hooks/useRotatingSpinner.ts b/src/hooks/useRotatingSpinner.ts
index 8601e13..6588d22 100644
--- a/src/hooks/useRotatingSpinner.ts
+++ b/src/hooks/useRotatingSpinner.ts
@@ -6,37 +6,37 @@ let isRotating = false
const listeners = new Set()
export function setRotating(rotating: boolean): void {
- isRotating = rotating
- notifyListeners()
+ isRotating = rotating
+ notifyListeners()
}
export function getRotating(): boolean {
- return isRotating
+ return isRotating
}
export function addRotationListener(listener: RotationListener): void {
- listeners.add(listener)
+ listeners.add(listener)
}
export function removeRotationListener(listener: RotationListener): void {
- listeners.delete(listener)
+ listeners.delete(listener)
}
function notifyListeners(): void {
- listeners.forEach(listener => listener(isRotating))
+ listeners.forEach((listener) => listener(isRotating))
}
export function useRotatingSpinner(): boolean {
- const [rotating, setRotatingState] = useState(isRotating)
+ const [rotating, setRotatingState] = useState(isRotating)
- useEffect(() => {
- const listener = (newRotating: boolean) => {
- setRotatingState(newRotating)
- }
+ useEffect(() => {
+ const listener = (newRotating: boolean) => {
+ setRotatingState(newRotating)
+ }
- addRotationListener(listener)
- return () => removeRotationListener(listener)
- }, [])
+ addRotationListener(listener)
+ return () => removeRotationListener(listener)
+ }, [])
- return rotating
+ return rotating
}