From 5757e6647dcf4e8ff0a2a49659d3aa4551ee8dfc Mon Sep 17 00:00:00 2001
From: 0x1eef <0x1eef@protonmail.com>
Date: Fri, 26 Apr 2024 22:24:52 -0300
Subject: [PATCH] 'npm run prettier'
---
client/src/js/components/App.tsx | 7 +++++--
client/src/js/main/main.tsx | 8 ++++----
2 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/client/src/js/components/App.tsx b/client/src/js/components/App.tsx
index f248af1..ddf01ee 100644
--- a/client/src/js/components/App.tsx
+++ b/client/src/js/components/App.tsx
@@ -19,8 +19,11 @@ export function App({ children }: PropsWithChildren<{}>) {
/* allowlist: param keys acceptable as cookie keys */
const allowlist = ["projectId"];
Object.entries(params).forEach(([key, value]) => {
- if (allowlist.includes(key) && cookies[key] !== value &&
- /^[0-9A-Za-z]+$/.test(String(value))) {
+ if (
+ allowlist.includes(key) &&
+ cookies[key] !== value &&
+ /^[0-9A-Za-z]+$/.test(String(value))
+ ) {
document.cookie = `${key}=${value}; path=/`;
}
});
diff --git a/client/src/js/main/main.tsx b/client/src/js/main/main.tsx
index a73512f..01dd986 100644
--- a/client/src/js/main/main.tsx
+++ b/client/src/js/main/main.tsx
@@ -7,21 +7,21 @@ import { Task } from "~/components/Task";
(function () {
const components = {
- "Task": () => (
+ Task: () => (
),
- "Tasks": () => (
+ Tasks: () => (
),
- "Projects": () => (
+ Projects: () => (
- )
+ ),
};
const ents = Object.entries(components);
for (let i = 0; i < ents.length; i++) {