|
@@ -1,13 +1,14 @@
|
|
|
import ms from "pretty-ms";
|
|
|
import { dispatch } from "../../../domain/gameStore";
|
|
|
import { useRecentGameInfo } from "../../../hooks/useGameInfo";
|
|
|
+import Loading from "../../util/Loading";
|
|
|
import styles from "./HomePage.module.css";
|
|
|
|
|
|
const RecentGames = () => {
|
|
|
const recent = useRecentGameInfo();
|
|
|
|
|
|
if (!recent || recent.length === 0) {
|
|
|
- return <></>;
|
|
|
+ return <Loading />;
|
|
|
}
|
|
|
|
|
|
return (
|