Added loading animation to the player info
This commit is contained in:
parent
14d7401a31
commit
fb5b06abce
@ -4,6 +4,7 @@ import { useSettingsStore } from "../store/overlaySettingsStore";
|
|||||||
import { usePlayerDataStore } from "../store/playerDataStore";
|
import { usePlayerDataStore } from "../store/playerDataStore";
|
||||||
import Avatar from "./Avatar";
|
import Avatar from "./Avatar";
|
||||||
|
|
||||||
|
import { Loading } from "@nextui-org/react";
|
||||||
import { useSongDataStore } from "../store/songDataStore";
|
import { useSongDataStore } from "../store/songDataStore";
|
||||||
import styles from "../styles/playerStats.module.css";
|
import styles from "../styles/playerStats.module.css";
|
||||||
|
|
||||||
@ -36,7 +37,11 @@ const PlayerStats = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (isLoading) {
|
if (isLoading) {
|
||||||
return <div className={styles.playerStatsContainer}>Loading...</div>;
|
return (
|
||||||
|
<div className={styles.playerStatsContainer}>
|
||||||
|
<Loading size="lg" />
|
||||||
|
</div>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
Reference in New Issue
Block a user