closes #136
This commit is contained in:
@@ -36,7 +36,7 @@ type SetPageParams =
|
||||
|
||||
interface MrtStore {
|
||||
page: SetPageParams["page"];
|
||||
|
||||
latestMission: Mission | null;
|
||||
lines: DisplayLineProps[];
|
||||
|
||||
setPage: (pageData: SetPageParams) => void;
|
||||
@@ -65,6 +65,7 @@ export const useDmeStore = create<MrtStore>(
|
||||
},
|
||||
],
|
||||
setLines: (lines) => set({ lines }),
|
||||
latestMission: null,
|
||||
setPage: (pageData) => {
|
||||
if (interval) clearInterval(interval);
|
||||
switch (pageData.page) {
|
||||
@@ -122,6 +123,7 @@ export const useDmeStore = create<MrtStore>(
|
||||
}
|
||||
case "mission": {
|
||||
set({
|
||||
latestMission: pageData.mission,
|
||||
page: "mission",
|
||||
lines: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user