Skip to content

Commit

Permalink
fix(Studio.Design): lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Milkeyyy committed Dec 26, 2024
1 parent fc3313b commit 4804f53
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions websites/S/Studio.Design/presence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ const presence = new Presence({

presence.on("UpdateData", async () => {
const presenceData: PresenceData = {
largeImageKey: "https://i.imgur.com/zjBdwQ8.png",
startTimestamp: browsingTimestamp,
},
{ pathname } = document.location;
largeImageKey: "https://i.imgur.com/zjBdwQ8.png",
startTimestamp: browsingTimestamp,
},
{ pathname } = document.location;

switch (pathname) {
// Projects
Expand All @@ -31,17 +31,16 @@ presence.on("UpdateData", async () => {
if (pathname.includes("/general"))
presenceData.state = "Managing Project Settings...";
// Members
else if (pathname.includes("/members"))
else if (pathname.includes("/members"))
presenceData.state = "Managing Members...";
// Apps
else if (pathname.includes("/apps"))
presenceData.state = "Browsing Apps...";
// Showcase
else if (pathname.includes("/showcase"))
presenceData.state = "Viewing Showcase...";
else
presenceData.state = "";
// CMS
else presenceData.state = "";
// CMS
} else if (pathname.includes("/cms"))
presenceData.state = "Managing CMS...";
// CMS - Forms
Expand All @@ -53,11 +52,14 @@ presence.on("UpdateData", async () => {
// CMS - Plan
else if (pathname.includes("/plan"))
presenceData.state = "Managing Plan...";
// Payment
// Payment
} else if (pathname === "/payment")
presenceData.details = "Managing Payment Settings...";
// Editor
else if (pathname.includes("/projects/") && pathname.includes("/editor/")) {
else if (
pathname.includes("/projects/") &&
pathname.includes("/editor/")
) {
presenceData.details = "Design Editor";
presenceData.state = "Editing Pages...";
}
Expand Down

0 comments on commit 4804f53

Please sign in to comment.