feat(dokploy): add welcome modal to dokploy cloud

This commit is contained in:
Mauricio Siu
2024-10-27 12:50:22 -06:00
parent 707d609b46
commit 3808fd83a6
6 changed files with 91 additions and 5 deletions
+10 -3
View File
@@ -1,14 +1,21 @@
import { ShowProjects } from "@/components/dashboard/projects/show";
import { ShowWelcomeDokploy } from "@/components/dashboard/settings/billing/show-welcome-dokploy";
import { DashboardLayout } from "@/components/layouts/dashboard-layout";
import { appRouter } from "@/server/api/root";
import { validateRequest } from "@dokploy/server";
import { createServerSideHelpers } from "@trpc/react-query/server";
import type { GetServerSidePropsContext } from "next";
import React, { type ReactElement } from "react";
import type React from "react";
import type { ReactElement } from "react";
import superjson from "superjson";
const Dashboard = () => {
return <ShowProjects />;
return (
<>
<ShowWelcomeDokploy />
<ShowProjects />
</>
);
};
export default Dashboard;
@@ -35,7 +42,7 @@ export async function getServerSideProps(
});
await helpers.settings.isCloud.prefetch();
await helpers.auth.get.prefetch();
if (!user) {
return {
redirect: {