Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

consolidate project comopnents

Steven Teya070ecbd262b
diff --git a/components/app/no-projects-placeholder.tsx b/components/app/projects/no-projects-placeholder.tsx
similarity index 100%
rename from components/app/no-projects-placeholder.tsx
rename to components/app/projects/no-projects-placeholder.tsx
diff --git a/components/app/project-card-placeholder.tsx b/components/app/projects/project-card-placeholder.tsx
similarity index 100%
rename from components/app/project-card-placeholder.tsx
rename to components/app/projects/project-card-placeholder.tsx
diff --git a/components/app/project-card.tsx b/components/app/projects/project-card.tsx
similarity index 98%
rename from components/app/project-card.tsx
rename to components/app/projects/project-card.tsx
index b424ca9615..0d8c4ee917 100644
--- a/components/app/project-card.tsx
+++ b/components/app/projects/project-card.tsx
@@ -6,7 +6,7 @@ import Tooltip, { TooltipContent } from "@/components/shared/tooltip";
import { ProjectWithDomainProps } from "@/lib/types";
import { fetcher, nFormatter } from "@/lib/utils";
import { BarChart2, Globe, Link2 } from "lucide-react";
-import PlanBadge from "./settings/plan-badge";
+import PlanBadge from "../settings/plan-badge";
export default function ProjectCard({
name,
diff --git a/lib/types.ts b/lib/types.ts
index af19094348..dcc1640ac4 100644
--- a/lib/types.ts
+++ b/lib/types.ts
@@ -52,7 +52,7 @@ export interface ProjectProps {
export interface ProjectWithDomainProps extends ProjectProps {
domains: DomainProps[];
- primaryDomain: DomainProps;
+ primaryDomain?: DomainProps;
}
export interface UserProps {
diff --git a/pages/app/index.tsx b/pages/app/index.tsx
index 6b641ee48f..3588a3a568 100644
--- a/pages/app/index.tsx
+++ b/pages/app/index.tsx
@@ -1,7 +1,7 @@
import { useAddProjectModal } from "@/components/app/modals/add-project-modal";
-import NoProjectsPlaceholder from "@/components/app/no-projects-placeholder";
-import ProjectCard from "@/components/app/project-card";
-import ProjectCardPlaceholder from "@/components/app/project-card-placeholder";
+import NoProjectsPlaceholder from "@/components/app/projects/no-projects-placeholder";
+import ProjectCard from "@/components/app/projects/project-card";
+import ProjectCardPlaceholder from "@/components/app/projects/project-card-placeholder";
import MaxWidthWrapper from "@/components/shared/max-width-wrapper";
import AppLayout from "components/layout/app";
import useProjects from "@/lib/swr/use-projects";
diff --git a/tsconfig.json b/tsconfig.json
index 5039d31128..cb5c364308 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -22,7 +22,7 @@
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
- "strict": false
+ "strict": false,
// TODO: Add these back in when we're ready for a full Typescript audit 🥴
// "plugins": [
// {
@@ -30,6 +30,7 @@
// }
// ],
// "strictNullChecks": true
+ "strictNullChecks": true
},
"include": [
"next-env.d.ts",