mirror of
https://github.com/Sosokker/B2D-Ventures.git
synced 2025-12-19 22:14:06 +01:00
feat: add edit button for project navigation on dashboard
This commit is contained in:
parent
9c1564f874
commit
b2bc8766e1
@ -13,6 +13,7 @@ import { getInvestmentByProjectsIds } from "@/lib/data/investmentQuery";
|
|||||||
import { useQuery } from "@supabase-cache-helpers/postgrest-react-query";
|
import { useQuery } from "@supabase-cache-helpers/postgrest-react-query";
|
||||||
import { overAllGraphData, Deal, fourYearGraphData, dayOftheWeekData } from "../portfolio/[uid]/query";
|
import { overAllGraphData, Deal, fourYearGraphData, dayOftheWeekData } from "../portfolio/[uid]/query";
|
||||||
import CountUp from "react-countup";
|
import CountUp from "react-countup";
|
||||||
|
import { Button } from "@/components/ui/button";
|
||||||
|
|
||||||
export default function Dashboard() {
|
export default function Dashboard() {
|
||||||
const supabase = createSupabaseClient();
|
const supabase = createSupabaseClient();
|
||||||
@ -228,31 +229,20 @@ export default function Dashboard() {
|
|||||||
</p> */}
|
</p> */}
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
{/* <Card>
|
<Button
|
||||||
<CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2">
|
onClick={() => {
|
||||||
<CardTitle className="text-sm font-medium">
|
window.location.href = `/project/${project.id}/edit`;
|
||||||
Active Now
|
}}
|
||||||
</CardTitle>
|
className="h-full bg-emerald-500 hover:bg-emerald-800 font-bold text-xl"
|
||||||
<svg
|
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
viewBox="0 0 24 24"
|
|
||||||
fill="none"
|
|
||||||
stroke="currentColor"
|
|
||||||
strokeLinecap="round"
|
|
||||||
strokeLinejoin="round"
|
|
||||||
strokeWidth="2"
|
|
||||||
className="h-4 w-4 text-muted-foreground"
|
|
||||||
>
|
>
|
||||||
<path d="M22 12h-4l-3 9L9 3l-3 9H2" />
|
Edit Project
|
||||||
</svg>
|
<svg width="32" height="32" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
</CardHeader>
|
<path
|
||||||
<CardContent>
|
d="M3 17.25V21h3.75l11.05-11.05-3.75-3.75L3 17.25zM20.71 7.04a1.003 1.003 0 000-1.42l-2.34-2.34a1.003 1.003 0 00-1.42 0L15.13 4.5l3.75 3.75 1.83-1.21z"
|
||||||
<div className="text-2xl font-bold">+573</div>
|
fill="currentColor"
|
||||||
<p className="text-xs text-muted-foreground">
|
/>
|
||||||
+201 since last hour
|
</svg>
|
||||||
</p>
|
</Button>
|
||||||
</CardContent>
|
|
||||||
</Card> */}
|
|
||||||
</div>
|
</div>
|
||||||
<div className="grid gap-4 md:grid-cols-2 lg:grid-cols-7">
|
<div className="grid gap-4 md:grid-cols-2 lg:grid-cols-7">
|
||||||
<Card className="col-span-4">
|
<Card className="col-span-4">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user