|
|
@ -7,23 +7,23 @@ import { persist, createJSONStorage } from "zustand/middleware"; |
|
|
|
import { PARTICIPANT_NUMBER } from "./core/Constants"; |
|
|
|
|
|
|
|
const NoPageFound = React.lazy(() => import("./pages/NoPageFound")); |
|
|
|
const InBetweenSite1 = React.lazy(() => |
|
|
|
import("./pages/study_site_1/InBetweenSite1") |
|
|
|
const InBetweenSite1 = React.lazy( |
|
|
|
() => import("./pages/study_site_1/InBetweenSite1") |
|
|
|
); |
|
|
|
const InBetweenSite2 = React.lazy(() => |
|
|
|
import("./pages/study_site_2/InBetweenSite2") |
|
|
|
const InBetweenSite2 = React.lazy( |
|
|
|
() => import("./pages/study_site_2/InBetweenSite2") |
|
|
|
); |
|
|
|
const InBetweenSite3 = React.lazy(() => |
|
|
|
import("./pages/study_site_3/InBetweenSite3") |
|
|
|
const InBetweenSite3 = React.lazy( |
|
|
|
() => import("./pages/study_site_3/InBetweenSite3") |
|
|
|
); |
|
|
|
const InBetweenSite4 = React.lazy(() => |
|
|
|
import("./pages/study_site_4/InBetweenSite4") |
|
|
|
const InBetweenSite4 = React.lazy( |
|
|
|
() => import("./pages/study_site_4/InBetweenSite4") |
|
|
|
); |
|
|
|
const InBetweenSite5 = React.lazy(() => |
|
|
|
import("./pages/study_site_5/InBetweenSite5") |
|
|
|
const InBetweenSite5 = React.lazy( |
|
|
|
() => import("./pages/study_site_5/InBetweenSite5") |
|
|
|
); |
|
|
|
const InBetweenSite6 = React.lazy(() => |
|
|
|
import("./pages/study_site_6/InBetweenSite6") |
|
|
|
const InBetweenSite6 = React.lazy( |
|
|
|
() => import("./pages/study_site_6/InBetweenSite6") |
|
|
|
); |
|
|
|
|
|
|
|
const MainInfoPage = React.lazy(() => import("./pages/MainInfoPage")); |
|
|
@ -35,27 +35,27 @@ const StartPage3 = React.lazy(() => import("./pages/study_site_3/StartPage3")); |
|
|
|
const StartPage4 = React.lazy(() => import("./pages/study_site_4/StartPage4")); |
|
|
|
const StartPage5 = React.lazy(() => import("./pages/study_site_5/StartPage5")); |
|
|
|
const StartPage6 = React.lazy(() => import("./pages/study_site_6/StartPage6")); |
|
|
|
const DeliveryRegions = React.lazy(() => |
|
|
|
import("./pages/study_site_6/DeliveryRegions") |
|
|
|
const DeliveryRegions = React.lazy( |
|
|
|
() => import("./pages/study_site_6/DeliveryRegions") |
|
|
|
); |
|
|
|
const DownloadApp = React.lazy(() => |
|
|
|
import("./pages/study_site_6/DownloadApp") |
|
|
|
const DownloadApp = React.lazy( |
|
|
|
() => import("./pages/study_site_6/DownloadApp") |
|
|
|
); |
|
|
|
const HotelMap = React.lazy(() => |
|
|
|
import("./pages/study_site_2/tab_content/HotelMap") |
|
|
|
const HotelMap = React.lazy( |
|
|
|
() => import("./pages/study_site_2/tab_content/HotelMap") |
|
|
|
); |
|
|
|
const RedirectPage = React.lazy(() => import("./core/RedirectPage")); |
|
|
|
const TourOperators = React.lazy(() => |
|
|
|
import("./pages/study_site_2/TourOperators") |
|
|
|
const TourOperators = React.lazy( |
|
|
|
() => import("./pages/study_site_2/TourOperators") |
|
|
|
); |
|
|
|
|
|
|
|
const GeneralConcerns = React.lazy(() => |
|
|
|
import("./pages/study_site_1/GeneralConcerns") |
|
|
|
const GeneralConcerns = React.lazy( |
|
|
|
() => import("./pages/study_site_1/GeneralConcerns") |
|
|
|
); |
|
|
|
const MyBookings = React.lazy(() => import("./pages/study_site_1/MyBookings")); |
|
|
|
const Rebooking = React.lazy(() => import("./pages/study_site_1/Rebooking")); |
|
|
|
const FlightProblems = React.lazy(() => |
|
|
|
import("./pages/study_site_1/FlightProblems") |
|
|
|
const FlightProblems = React.lazy( |
|
|
|
() => import("./pages/study_site_1/FlightProblems") |
|
|
|
); |
|
|
|
|
|
|
|
export const sensorLogState = createStore( |
|
|
@ -70,8 +70,8 @@ export const sensorLogState = createStore( |
|
|
|
}, |
|
|
|
}), |
|
|
|
{ |
|
|
|
name: "sensor-storage", // name of the item in the storage (must be unique)
|
|
|
|
storage: createJSONStorage(() => sessionStorage), // (optional) by default, 'localStorage' is used
|
|
|
|
name: "sensor-storage", |
|
|
|
storage: createJSONStorage(() => sessionStorage), |
|
|
|
} |
|
|
|
) |
|
|
|
); |
|
|
@ -130,7 +130,6 @@ const getLatinSquareOrder = function (participantNumber) { |
|
|
|
}; |
|
|
|
|
|
|
|
function App() { |
|
|
|
// TODO FIX...
|
|
|
|
/* |
|
|
|
There is an weird interaction/error with the lazy loading of the routers |
|
|
|
and the translation or any other component, that needs to be loaded in |
|
|
|