Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

refactor: :recycle: removing unused files

Andrej6726d9a72a8e
diff --git a/apps/web/src/store/hash.ts b/apps/web/src/store/hash.ts
deleted file mode 100644
index 40a9008ba..000000000
--- a/apps/web/src/store/hash.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-import type { StateStorage } from "zustand/middleware";
-
-export const hashStorage: StateStorage = {
- getItem: (key): string => {
- const searchParams = new URLSearchParams(location.hash.slice(1));
- const value = searchParams.get(key);
- return String(value);
- },
- setItem: (key, newValue): void => {
- const searchParams = new URLSearchParams(location.hash.slice(1));
- searchParams.set(key, newValue);
- location.hash = searchParams.toString();
- },
- removeItem: (key): void => {
- const searchParams = new URLSearchParams(location.hash.slice(1));
- searchParams.delete(key);
- location.hash = searchParams.toString();
- },
-};