->(({ className, ...props }, ref) => (
- [role=checkbox]]:translate-y-[2px]",
- className
- )}
- {...props}
- />
-))
-TableCell.displayName = "TableCell"
-
-const TableCaption = React.forwardRef<
- HTMLTableCaptionElement,
- React.HTMLAttributes
->(({ className, ...props }, ref) => (
-
-))
-TableCaption.displayName = "TableCaption"
-
-export {
- Table,
- TableHeader,
- TableBody,
- TableFooter,
- TableHead,
- TableRow,
- TableCell,
- TableCaption,
-}
diff --git a/frontend/shared/src/components/ui/tooltip.tsx b/frontend/shared/src/components/ui/tooltip.tsx
deleted file mode 100644
index 39e4f0f2e..000000000
--- a/frontend/shared/src/components/ui/tooltip.tsx
+++ /dev/null
@@ -1,28 +0,0 @@
-import * as React from "react"
-import * as TooltipPrimitive from "@radix-ui/react-tooltip"
-
-import { cn } from "@shared/utils"
-
-const TooltipProvider = TooltipPrimitive.Provider
-
-const Tooltip = TooltipPrimitive.Root
-
-const TooltipTrigger = TooltipPrimitive.Trigger
-
-const TooltipContent = React.forwardRef<
- React.ElementRef,
- React.ComponentPropsWithoutRef
->(({ className, sideOffset = 4, ...props }, ref) => (
-
-))
-TooltipContent.displayName = TooltipPrimitive.Content.displayName
-
-export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider }
diff --git a/frontend/shared/src/index.ts b/frontend/shared/src/index.ts
deleted file mode 100644
index dd6f07f57..000000000
--- a/frontend/shared/src/index.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-// Use this file to export React client components (e.g. those with 'use client' directive) or other non-server utilities
-
-export * from './lib/shared';
-export * from './components/theme-provider';
diff --git a/frontend/shared/src/lib/get-query-client.ts b/frontend/shared/src/lib/get-query-client.ts
deleted file mode 100644
index 58da1f4f7..000000000
--- a/frontend/shared/src/lib/get-query-client.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-import {
- QueryClient,
- defaultShouldDehydrateQuery,
- isServer,
- } from '@tanstack/react-query'
-
- function makeQueryClient() {
- return new QueryClient({
- defaultOptions: {
- queries: {
- staleTime: 15 * 1000,
- },
- dehydrate: {
- // include pending queries in dehydration
- shouldDehydrateQuery: (query) =>
- defaultShouldDehydrateQuery(query) ||
- query.state.status === 'pending',
- },
- },
- })
- }
-
- let browserQueryClient: QueryClient | undefined = undefined
-
- export function getQueryClient() {
- if (isServer) {
- // Server: always make a new query client
- return makeQueryClient()
- } else {
- // Browser: make a new query client if we don't already have one
- // This is very important, so we don't re-make a new client if React
- // suspends during the initial render. This may not be needed if we
- // have a suspense boundary BELOW the creation of the query client
- if (!browserQueryClient) browserQueryClient = makeQueryClient()
- return browserQueryClient
- }
- }
-
\ No newline at end of file
diff --git a/frontend/shared/src/lib/getBaseURL.ts b/frontend/shared/src/lib/getBaseURL.ts
deleted file mode 100644
index a6da28b87..000000000
--- a/frontend/shared/src/lib/getBaseURL.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import { isServer } from '@tanstack/react-query'
-
-export function getBaseURL() {
- if (!isServer) {
- return ''
- }
- if (process.env.VERCEL_URL) {
- return `https://${process.env.VERCEL_URL}`
- }
- return 'http://localhost:3000'
- }
\ No newline at end of file
diff --git a/frontend/shared/src/lib/hello-server.tsx b/frontend/shared/src/lib/hello-server.tsx
deleted file mode 100644
index 9a45d09d2..000000000
--- a/frontend/shared/src/lib/hello-server.tsx
+++ /dev/null
@@ -1,4 +0,0 @@
-// React server components are async so you make database or API calls.
-export async function HelloServer() {
- return Hello Server;
-}
diff --git a/frontend/shared/src/lib/hooks/useEventListener.ts b/frontend/shared/src/lib/hooks/useEventListener.ts
deleted file mode 100644
index 3419f8e9f..000000000
--- a/frontend/shared/src/lib/hooks/useEventListener.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-import { useEffect, useRef, RefObject } from "react";
-
-type EventListener = (event: Event) => void;
-
-export default function useEventListener(
- eventType: string,
- callback: EventListener,
- element: Window | HTMLElement | null = window
-): void {
- const callbackRef = useRef(callback);
-
- useEffect(() => {
- callbackRef.current = callback;
- }, [callback]);
-
- useEffect(() => {
- if (element == null) return;
- const handler = (e: Event) => callbackRef.current(e);
- element.addEventListener(eventType, handler);
-
- return () => element.removeEventListener(eventType, handler);
- }, [eventType, element]);
-}
diff --git a/frontend/shared/src/lib/hooks/useMediaQuery.ts b/frontend/shared/src/lib/hooks/useMediaQuery.ts
deleted file mode 100644
index 993cf0d88..000000000
--- a/frontend/shared/src/lib/hooks/useMediaQuery.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-import { useState, useEffect } from "react";
-
-export default function useMediaQuery(query: string): boolean {
- const [isMatch, setIsMatch] = useState(false);
-
- useEffect(() => {
- const mediaQueryList = window.matchMedia(query);
- const documentChangeHandler = () => setIsMatch(mediaQueryList.matches);
-
- // Set the initial state
- documentChangeHandler();
-
- // Add event listener
- mediaQueryList.addEventListener("change", documentChangeHandler);
-
- // Clean up event listener on unmount
- return () => {
- mediaQueryList.removeEventListener("change", documentChangeHandler);
- };
- }, [query]);
-
- return isMatch;
-}
diff --git a/frontend/shared/src/lib/shared.spec.tsx b/frontend/shared/src/lib/shared.spec.tsx
deleted file mode 100644
index 4e392fa36..000000000
--- a/frontend/shared/src/lib/shared.spec.tsx
+++ /dev/null
@@ -1,10 +0,0 @@
-import React from 'react'
-import { render } from '@testing-library/react';
-import { Shared } from './shared';
-
-describe('Shared', () => {
- it('should render successfully', () => {
- const { baseElement } = render();
- expect(baseElement).toBeTruthy();
- });
-});
diff --git a/frontend/shared/src/lib/shared.tsx b/frontend/shared/src/lib/shared.tsx
deleted file mode 100644
index 1376196c1..000000000
--- a/frontend/shared/src/lib/shared.tsx
+++ /dev/null
@@ -1,7 +0,0 @@
-export function Shared() {
- return (
-
- Welcome to Shared!
-
- );
-}
diff --git a/frontend/shared/src/lib/utils.ts b/frontend/shared/src/lib/utils.ts
deleted file mode 100644
index e8ed52518..000000000
--- a/frontend/shared/src/lib/utils.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import { clsx, type ClassValue } from "clsx"
-import { twMerge } from "tailwind-merge"
-
-export function cn(...inputs: ClassValue[]) {
- return twMerge(clsx(inputs))
-}
-
diff --git a/frontend/shared/src/server.ts b/frontend/shared/src/server.ts
deleted file mode 100644
index affbeeb4b..000000000
--- a/frontend/shared/src/server.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-// Use this file to export React server components
-export * from './lib/hello-server';
-export * from './components/spinner';
-export * from './lib/getBaseURL'
diff --git a/frontend/shared/tsconfig.json b/frontend/shared/tsconfig.json
deleted file mode 100644
index cda6f9e59..000000000
--- a/frontend/shared/tsconfig.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "compilerOptions": {
- "jsx": "react-jsx",
- "allowJs": false,
- "esModuleInterop": false,
- "allowSyntheticDefaultImports": true,
- "strict": true
- },
- "files": [],
- "include": [],
- "references": [
- {
- "path": "./tsconfig.lib.json"
- }
- ],
- "extends": "../tsconfig.base.json"
-}
diff --git a/frontend/shared/tsconfig.lib.json b/frontend/shared/tsconfig.lib.json
deleted file mode 100644
index 70bca6717..000000000
--- a/frontend/shared/tsconfig.lib.json
+++ /dev/null
@@ -1,25 +0,0 @@
-{
- "extends": "./tsconfig.json",
- "compilerOptions": {
- "outDir": "../dist/out-tsc",
- "types": [
- "node",
- "@nx/react/typings/cssmodule.d.ts",
- "@nx/react/typings/image.d.ts",
- "next",
- "@nx/next/typings/image.d.ts"
- ]
- },
- "exclude": [
- "jest.config.ts",
- "src/**/*.spec.ts",
- "src/**/*.test.ts",
- "src/**/*.spec.tsx",
- "src/**/*.test.tsx",
- "src/**/*.spec.js",
- "src/**/*.test.js",
- "src/**/*.spec.jsx",
- "src/**/*.test.jsx"
- ],
- "include": ["src/**/*.js", "src/**/*.jsx", "src/**/*.ts", "src/**/*.tsx"]
-}
diff --git a/frontend/tsconfig.base.json b/frontend/tsconfig.base.json
deleted file mode 100644
index 53b186b46..000000000
--- a/frontend/tsconfig.base.json
+++ /dev/null
@@ -1,26 +0,0 @@
-{
- "compileOnSave": false,
- "compilerOptions": {
- "rootDir": ".",
- "sourceMap": true,
- "declaration": false,
- "moduleResolution": "node",
- "emitDecoratorMetadata": true,
- "experimentalDecorators": true,
- "importHelpers": true,
- "target": "es2015",
- "module": "esnext",
- "lib": ["es2020", "dom"],
- "skipLibCheck": true,
- "skipDefaultLibCheck": true,
- "baseUrl": ".",
- "paths": {
- "@shared": ["shared/src/index.ts"],
- "@shared/server": ["shared/src/server.ts"],
- "@shared/utils": ["shared/src/lib/utils.ts"],
- "@shared/lib/*": ["shared/src/lib/*"],
- "@shared/components/*": ["shared/src/components/*"],
- }
- },
- "exclude": ["node_modules", "tmp"]
-}
diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json
deleted file mode 100644
index 4ae42fc3a..000000000
--- a/frontend/tsconfig.json
+++ /dev/null
@@ -1,2 +0,0 @@
-//tsconfig.json
-{}
\ No newline at end of file
|