mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
feat: session tracker themeing
This commit is contained in:
1 parent
bcb7ca5c4c
commit
4fb61d6dbd
8 files changed
+134
-31
No files matched your search
@@ -2,6 +2,7 @@ import { produce } from 'immer';
|
||||
import { create } from 'zustand';
|
||||
import { devtools, persist } from 'zustand/middleware';
|
||||
import { CustomColumnDisplay } from '../app/tools/session/components/CustomColumn';
|
||||
import { AccentColor, GrayColor } from '../constants/radixColors';
|
||||
import { Region } from '../constants/regions';
|
||||
import { WARGAMING_APPLICATION_ID } from '../constants/wargamingApplicationID';
|
||||
import fetchBlitz from '../core/blitz/fetchBlitz';
|
||||
@@ -29,6 +30,7 @@ type Session = (
|
||||
}[] & { length: 4 };
|
||||
showTotal: boolean;
|
||||
showCareer: boolean;
|
||||
color: AccentColor | GrayColor;
|
||||
};
|
||||
|
||||
export async function setSession(region: Region, id: number, nickname: string) {
|
||||
@@ -78,10 +80,9 @@ export const useSession = create<Session>()(
|
||||
{ display: 'wn8', showDelta: false },
|
||||
{ display: 'damage', showDelta: true },
|
||||
],
|
||||
color: 'slate',
|
||||
}),
|
||||
{
|
||||
name: 'session',
|
||||
},
|
||||
{ name: 'session' },
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user