mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
feat: /inactive face lift
This commit is contained in:
1 parent
26e78c72b9
commit
1875f30cf5
7 files changed
+129
-112
No files matched your search
@@ -1,17 +0,0 @@
|
||||
import { theme } from '../stitches.config.js';
|
||||
|
||||
export default function NoBattlesInPeriod() {
|
||||
return (
|
||||
<div
|
||||
style={{
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
}}
|
||||
>
|
||||
<span style={{ fontSize: 16, color: theme.colors.textLowContrast }}>
|
||||
No battles played in this period
|
||||
</span>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
import { theme } from '../stitches.config.js';
|
||||
|
||||
export enum NoDataType {
|
||||
Battles,
|
||||
Players,
|
||||
}
|
||||
|
||||
export interface NoDataProps {
|
||||
type: NoDataType;
|
||||
}
|
||||
|
||||
const NO_DATA_MESSAGES: Record<NoDataType, string> = {
|
||||
[NoDataType.Battles]: 'No battles played in this period',
|
||||
[NoDataType.Players]: 'No players in this period',
|
||||
};
|
||||
|
||||
export default function NoData({ type }: NoDataProps) {
|
||||
return (
|
||||
<div
|
||||
style={{
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
}}
|
||||
>
|
||||
<span style={{ fontSize: 16, color: theme.colors.textLowContrast }}>
|
||||
{NO_DATA_MESSAGES[type]}
|
||||
</span>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user