mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-04 05:05:35 +03:00
grid: simplifying system icon and prefix storage with ship
This commit is contained in:
parent
5b3b2ff671
commit
0326efbd3f
File diff suppressed because one or more lines are too long
@ -61,7 +61,7 @@ export const useRecentsStore = create<RecentsStore>(
|
|||||||
}),
|
}),
|
||||||
{
|
{
|
||||||
whitelist: ['recentApps', 'recentDevs'],
|
whitelist: ['recentApps', 'recentDevs'],
|
||||||
name: 'recents-store',
|
name: `${window.ship}-recents-store`,
|
||||||
version: import.meta.env.VITE_SHORTHASH as any
|
version: import.meta.env.VITE_SHORTHASH as any
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
@ -74,7 +74,7 @@ export const optReduceState = <S extends Record<string, unknown>, U>(
|
|||||||
export let stateStorageKeys: string[] = [];
|
export let stateStorageKeys: string[] = [];
|
||||||
|
|
||||||
export const stateStorageKey = (stateName: string) => {
|
export const stateStorageKey = (stateName: string) => {
|
||||||
stateName = `Grid${stateName}State-${import.meta.env.VITE_SHORTHASH as any}`;
|
stateName = `${window.ship}-Grid${stateName}State-${import.meta.env.VITE_SHORTHASH as any}`;
|
||||||
stateStorageKeys = [...new Set([...stateStorageKeys, stateName])];
|
stateStorageKeys = [...new Set([...stateStorageKeys, stateName])];
|
||||||
return stateName;
|
return stateName;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user