mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
fix: no tanks heads up in /ownedtanks
This commit is contained in:
1 parent
524edac615
commit
238661ac16
15 files changed
+38
-31
No files matched your search
@@ -1,8 +1,9 @@
|
||||
import { theme } from '../stitches.config.js';
|
||||
|
||||
export enum NoDataType {
|
||||
Battles,
|
||||
Players,
|
||||
BattlesInPeriod,
|
||||
PlayersInPeriod,
|
||||
TanksFound,
|
||||
}
|
||||
|
||||
export interface NoDataProps {
|
||||
@@ -10,8 +11,9 @@ export interface NoDataProps {
|
||||
}
|
||||
|
||||
const NO_DATA_MESSAGES: Record<NoDataType, string> = {
|
||||
[NoDataType.Battles]: 'No battles played in this period',
|
||||
[NoDataType.Players]: 'No players in this period',
|
||||
[NoDataType.BattlesInPeriod]: 'No battles played in this period',
|
||||
[NoDataType.PlayersInPeriod]: 'No players in this period',
|
||||
[NoDataType.TanksFound]: 'No tanks found',
|
||||
};
|
||||
|
||||
export default function NoData({ type }: NoDataProps) {
|
||||
|
||||
Reference in new issue
Block a user