use same Loading progress bar everywhere

This commit is contained in:
2026-01-03 09:23:10 +01:00
parent 7ec6a5b45f
commit ed460f63d6
7 changed files with 20 additions and 19 deletions

View File

@@ -4,6 +4,7 @@ import { apiAuth, User } from "./api";
import { TeamState, useSession } from "./Session";
import TabController from "./TabController";
import { Chemistry, MVPRanking, PlayerType } from "./types";
import Loading from "./Loading";
type PlayerListProps = Partial<ReactSortableProps<any>> & {
orderedList?: boolean;
@@ -300,9 +301,7 @@ function MVPDnD({ user, teams, players }: PlayerInfoProps) {
onSubmit={handleSubmit}
/>
{loading ? (
<div className="container">
<progress className="progress is-primary" max="100"></progress>
</div>
Loading
) : (
<div className="columns container is-mobile is-1-mobile">
<div className="column">
@@ -422,9 +421,7 @@ function ChemistryDnDMobile({ user, teams, players }: PlayerInfoProps) {
onSubmit={handleSubmit}
/>
{loading ? (
<div className="container">
<progress className="progress is-primary" max="100"></progress>
</div>
Loading
) : (
<div className="columns container is-multiline is-mobile is-1-mobile">
<div className="column is-full is-flex is-justify-content-center">
@@ -526,9 +523,7 @@ export default function Rankings() {
<TypeDnD {...{ user, teams, players }} />
</TabController>
) : (
<div className="container">
<progress className="progress is-primary" max="100"></progress>
</div>
Loading
)}
</div>
</section>