diff --git a/src/components/ProtectedRoute.jsx b/src/components/ProtectedRoute.tsx
similarity index 92%
rename from src/components/ProtectedRoute.jsx
rename to src/components/ProtectedRoute.tsx
index 51f317f..5245e26 100644
--- a/src/components/ProtectedRoute.jsx
+++ b/src/components/ProtectedRoute.tsx
@@ -21,7 +21,12 @@ const DefaultFallback = () => (
* The attempted path travels in location state so signing in returns the
* visitor to where they were going.
*/
-export default function ProtectedRoute({ fallback = , unauthenticatedElement }) {
+interface ProtectedRouteProps {
+ fallback?: any;
+ unauthenticatedElement?: any;
+}
+
+export default function ProtectedRoute({ fallback = , unauthenticatedElement }: ProtectedRouteProps) {
const location = useLocation();
const { isAuthenticated, isLoadingAuth, authChecked, authError, checkUserAuth } = useAuth();
const signedOut = unauthenticatedElement ?? (
diff --git a/src/components/ScrollToTop.jsx b/src/components/ScrollToTop.tsx
similarity index 100%
rename from src/components/ScrollToTop.jsx
rename to src/components/ScrollToTop.tsx
diff --git a/src/components/UserNotRegisteredError.jsx b/src/components/UserNotRegisteredError.tsx
similarity index 100%
rename from src/components/UserNotRegisteredError.jsx
rename to src/components/UserNotRegisteredError.tsx
diff --git a/src/layouts/AdminLayout.jsx b/src/layouts/AdminLayout.tsx
similarity index 99%
rename from src/layouts/AdminLayout.jsx
rename to src/layouts/AdminLayout.tsx
index e86acc3..0f0f8d4 100644
--- a/src/layouts/AdminLayout.jsx
+++ b/src/layouts/AdminLayout.tsx
@@ -100,7 +100,11 @@ function GlobalSearch() {
);
}
-function NotificationsMenu({ items }) {
+interface NotificationsMenuProps {
+ items?: any;
+}
+
+function NotificationsMenu({ items }: NotificationsMenuProps) {
const unread = items.filter((n) => !n.read).length;
return (
diff --git a/src/layouts/Layout.jsx b/src/layouts/Layout.tsx
similarity index 100%
rename from src/layouts/Layout.jsx
rename to src/layouts/Layout.tsx