diff --git a/app/web/components/Loader.tsx b/app/web/components/Loader.tsx
index 02303aa..b0840c8 100644
--- a/app/web/components/Loader.tsx
+++ b/app/web/components/Loader.tsx
@@ -1,7 +1,7 @@
import Paper from '@mui/material/Paper';
import Skeleton from '@mui/material/Skeleton';
import Typography from '@mui/material/Typography';
-import { Container, Stack } from '@mui/system';
+import { Stack } from '@mui/system';
export const Loader = ({
loading,
@@ -11,49 +11,47 @@ export const Loader = ({
message?: string;
}) => {
return (
-
-
+
-
-
-
-
+
+
+
- {!loading && message && (
- {message}
- )}
+ {!loading && message && (
+ {message}
+ )}
-
- {Array(20)
- .fill(0)
- .map((_, i) => (
-
-
-
-
-
- ))}
-
+
+ {Array(20)
+ .fill(0)
+ .map((_, i) => (
+
+
+
+
+
+ ))}
+
-
-
-
-
-
+
+
+
+
);
};
diff --git a/app/web/components/PlayerPage.tsx b/app/web/components/PlayerPage.tsx
index 8356df2..6d2b101 100644
--- a/app/web/components/PlayerPage.tsx
+++ b/app/web/components/PlayerPage.tsx
@@ -56,14 +56,18 @@ export function PlayerPage({ token }: { token: string }) {
}
}, [params]); // eslint-disable-line react-hooks/exhaustive-deps
- if (!wars.length)
- return ;
+ if (!wars.length) {
+ return (
+
+
+
+ );
+ }
const attacker = wars?.[0]?.attacker;
-
return (
<>
-
+
>