Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

🔥 Remove unused files and config (#1329)

Luke Vellabe216344e2a4
diff --git a/apps/web/src/utils/breakpoint.ts b/apps/web/src/utils/breakpoint.ts
deleted file mode 100644
index bd96f2539..000000000
--- a/apps/web/src/utils/breakpoint.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-import { createBreakpoint } from "react-use";
-
-export const useBreakpoint = createBreakpoint({
- mobile: 320,
- desktop: 640,
-}) as () => "mobile" | "desktop";
diff --git a/apps/web/src/utils/prevent-widows.ts b/apps/web/src/utils/prevent-widows.ts
deleted file mode 100644
index ff8e97414..000000000
--- a/apps/web/src/utils/prevent-widows.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-export const preventWidows = (text: string) => {
- // This only really makes sense if we have at least 3 words
- if (text.split(" ").length < 3) {
- return text;
- }
- const index = text.lastIndexOf(" ");
- return [text.substring(0, index), text.substring(index + 1)].join("\u00a0");
-};
diff --git a/apps/web/src/utils/stop-propagation.ts b/apps/web/src/utils/stop-propagation.ts
deleted file mode 100644
index 8a10f6277..000000000
--- a/apps/web/src/utils/stop-propagation.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import React from "react";
-
-export const stopPropagation = (e: React.MouseEvent) => e.stopPropagation();
diff --git a/apps/web/src/utils/theme.json b/apps/web/src/utils/theme.json
deleted file mode 100644
index ad6c12d82..000000000
--- a/apps/web/src/utils/theme.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "color": {
- "background": "#FFFFFF",
- "highlightBg": "#f9fafd",
- "primary": "#8A75AE",
- "orange": "#ff4d4f",
- "border": "#ECEEF0",
- "textDark": "#3f4650",
- "textMid": "#666b77",
- "textLight": "#A0A6BA",
- "success": "#52c41a",
- "danger": "#EA3B66"
- },
- "spacing": {
- "xs": "4px",
- "sm": "8px"
- }
-}
diff --git a/apps/web/src/utils/with-page-translations.ts b/apps/web/src/utils/with-page-translations.ts
deleted file mode 100644
index a4a7f54e7..000000000
--- a/apps/web/src/utils/with-page-translations.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-import { GetStaticProps } from "next";
-import { serverSideTranslations } from "next-i18next/serverSideTranslations";
-
-export const getStaticTranslations: GetStaticProps = async (ctx) => {
- return {
- props: {
- ...(await getServerSideTranslations(ctx)),
- },
- };
-};
-
-export const getServerSideTranslations = async ({
- locale,
-}: {
- locale?: string;
-}) => {
- return await serverSideTranslations(locale ?? "en");
-};
diff --git a/apps/web/tsconfig.json b/apps/web/tsconfig.json
index c15b58634..fbeca8746 100644
--- a/apps/web/tsconfig.json
+++ b/apps/web/tsconfig.json
@@ -19,6 +19,5 @@
".next/**/*",
"playwright-report",
"test-results",
- "../../packages/emails/src/templates/*.tsx",
],
}