Skip to content

Commit

Permalink
Use better loader for PlayerTable
Browse files Browse the repository at this point in the history
  • Loading branch information
AuroraLS3 committed Jan 27, 2024
1 parent a8decff commit 2b93919
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Plan/react/dashboard/src/components/table/PlayerTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {Link} from "react-router-dom";
import {formatDecimals} from "../../util/formatters.js";
import {formatTimeAmount} from "../../util/format/TimeAmountFormat.js";
import {ExtensionValueTableCell} from "../extensions/ExtensionCard.jsx";
import {CardLoader} from "../navigation/Loader.jsx";
import {ChartLoader} from "../navigation/Loader.jsx";
import DataTablesTable from "./DataTablesTable.jsx";

const getActivityGroup = value => {
Expand Down Expand Up @@ -131,7 +131,7 @@ const PlayerTable = ({data, orderBy}) => {
}, []);

if (!preferencesLoaded) return <></>;
if (!options) return <CardLoader/>;
if (!options) return <ChartLoader/>;

return (
<DataTablesTable id={"players-table"} rowKeyFunction={rowKeyFunction} options={options}/>
Expand Down

0 comments on commit 2b93919

Please sign in to comment.