2023-07-02 09:28:41 +00:00
|
|
|
import {type TourData, TourId} from "../types.js";
|
2023-07-01 13:46:23 +00:00
|
|
|
import {renderInContainer} from "../utilities.js";
|
|
|
|
|
2023-07-03 12:11:46 +00:00
|
|
|
function renderSteps(): ReturnType<TourData["steps"]> {
|
|
|
|
const step01 = renderInContainer(
|
|
|
|
<>
|
|
|
|
<h1>Your Account Settings</h1>
|
|
|
|
</>,
|
|
|
|
);
|
2023-07-01 13:46:23 +00:00
|
|
|
|
2023-07-03 12:11:46 +00:00
|
|
|
return [
|
|
|
|
{
|
|
|
|
id: "account-settings-01",
|
|
|
|
text: step01,
|
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|
|
|
|
|
|
|
|
const steps: TourData["steps"] = renderSteps;
|
2023-07-01 13:46:23 +00:00
|
|
|
|
2023-07-02 09:28:41 +00:00
|
|
|
const eventHandlers: TourData["eventHandlers"] = [];
|
|
|
|
|
|
|
|
const requirements: TourData["requirements"] = {
|
|
|
|
mustBeLoggedIn: true,
|
|
|
|
path: "/settings",
|
|
|
|
};
|
|
|
|
|
|
|
|
export const accountSettingsTour: TourData = {
|
|
|
|
id: TourId.InterfaceAccountSettings,
|
|
|
|
title: "Your Account Settings",
|
|
|
|
description: "View your account settings and all that you can customize.",
|
|
|
|
displayInOptionsPage: true,
|
|
|
|
eventHandlers,
|
|
|
|
requirements,
|
|
|
|
steps,
|
|
|
|
};
|