-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
74 additions
and
96 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
src/app/(authenticated)/(dashboard)/[publicId]/captable/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 0 additions & 68 deletions
68
src/app/(authenticated)/(dashboard)/[publicId]/overview/page.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,68 @@ | ||
import EmptyState from "@/components/common/empty-state"; | ||
import { Button } from "@/components/ui/button"; | ||
import { RiPieChartFill } from "@remixicon/react"; | ||
import ActivitiesCard from "@/components/dashboard/overview/activities-card"; | ||
import DonutCard from "@/components/dashboard/overview/donut-card"; | ||
import SummaryTable from "@/components/dashboard/overview/summary-table"; | ||
import OverviewCard from "@/components/dashboard/overview/top-card"; | ||
import type { Metadata } from "next"; | ||
|
||
export const metadata: Metadata = { | ||
title: "Cap table", | ||
title: "Overview", | ||
}; | ||
|
||
const CaptablePage = () => { | ||
const OverviewPage = ({ | ||
params: { publicId }, | ||
}: { | ||
params: { publicId: string }; | ||
}) => { | ||
return ( | ||
<EmptyState | ||
icon={<RiPieChartFill />} | ||
title="Work in progress." | ||
subtitle="This page is not yet available." | ||
> | ||
<Button size="lg">Import existing captable</Button> | ||
</EmptyState> | ||
<> | ||
{/* <EmptyOverview firstName={firstName} publicCompanyId={publicCompanyId} /> */} | ||
|
||
<header> | ||
<h3 className="font-medium">Overview</h3> | ||
<p className="text-sm text-muted-foreground"> | ||
View your company{`'`}s captable overview | ||
</p> | ||
</header> | ||
|
||
<div className="grid gap-8 md:grid-cols-12"> | ||
<div className="sm:col-span-12 md:col-span-6 lg:col-span-8"> | ||
{/* Overview */} | ||
<section className="mt-6"> | ||
<div className="grid grid-cols-2 gap-8 md:grid-cols-2 lg:grid-cols-3"> | ||
<OverviewCard | ||
title="Amount raised" | ||
amount={28000000} | ||
prefix="$" | ||
/> | ||
<OverviewCard title="Diluted shares" amount={7560010} /> | ||
<OverviewCard title="Stakeholders" amount={28} format={false} /> | ||
</div> | ||
</section> | ||
|
||
{/* Tremor chart */} | ||
<section className="mt-6"> | ||
<DonutCard /> | ||
</section> | ||
</div> | ||
|
||
<div className="mt-6 sm:col-span-12 md:col-span-6 lg:col-span-4"> | ||
<ActivitiesCard | ||
publicId={publicId} | ||
className="border-none bg-transparent shadow-none" | ||
/> | ||
</div> | ||
</div> | ||
|
||
<div className="mt-10"> | ||
<h4 className="font-medium">Summary</h4> | ||
<p className="text-sm text-muted-foreground"> | ||
Summary of your company{`'`}s captable | ||
</p> | ||
|
||
<SummaryTable /> | ||
</div> | ||
</> | ||
); | ||
}; | ||
|
||
export default CaptablePage; | ||
export default OverviewPage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters