add off-balance alert treshold to settings

This commit is contained in:
calli
2025-04-22 18:08:53 +03:00
parent ac56adbcbe
commit 00a06a9681
4 changed files with 54 additions and 7 deletions

View File

@@ -35,6 +35,8 @@ export const SessionContext = createContext<{
characterId: number;
planetId: number;
}) => PlanetConfig;
balanceThreshold: number;
setBalanceThreshold: Dispatch<SetStateAction<number>>;
}>({
sessionReady: false,
refreshSession: () => {},
@@ -58,6 +60,8 @@ export const SessionContext = createContext<{
}) => {
return { characterId, planetId, excludeFromTotals: true };
},
balanceThreshold: 1000,
setBalanceThreshold: () => {},
});
export type ColorSelectionType = {
defaultColor: string;