Skip to content

Commit

Permalink
dashboard cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
psiddharthdesign committed Jul 29, 2024
1 parent e0e5d68 commit 30ae131
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 14 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
"markdown-to-jsx": "^7.4.7",
"moment": "^2.29.4",
"nanoid": "^5.0.7",
"next": "14.2.5",
"next": "^14.2.5",
"next-mdx-remote": "^4.4.1",
"next-nprogress-bar": "^2.1.2",
"next-themes": "^0.3.0",
Expand Down
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added public/images/favicon.ico
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,14 @@ import {
organizationParamSchema,
projectsfilterSchema
} from "@/utils/zod-schemas/params";
import { FileText, Layers, Plus } from "lucide-react";
import { Layers, Plus } from "lucide-react";
import type { Metadata } from 'next';
import Link from "next/link";
import { Suspense } from "react";
import type { z } from "zod";
import { DashboardClientWrapper } from "./DashboardClientWrapper";
import { DashboardLoadingFallback } from "./DashboardLoadingFallback";
import ProjectsLoadingFallback from "./ProjectsLoadingFallback";
import { OrganizationGraphs } from "./_graphs/OrganizationGraphs";

async function Projects({
organizationId,
Expand Down Expand Up @@ -47,10 +46,6 @@ async function Dashboard({ params, searchParams }: DashboardProps) {
<CardHeader className="flex flex-row items-center justify-between space-y-0 pb-6">
<CardTitle className="text-3xl font-bold tracking-tight">Dashboard</CardTitle>
<div className="flex space-x-4">
<Button variant="outline" size="sm">
<FileText className="mr-2 h-4 w-4" />
Export PDF
</Button>
<Link href={`/org/${organizationId}/projects/create`}>
<Button variant="default" size="sm">
<Plus className="mr-2 h-4 w-4" />
Expand Down Expand Up @@ -86,7 +81,6 @@ async function Dashboard({ params, searchParams }: DashboardProps) {
</Suspense>
</CardContent>
</Card>
<OrganizationGraphs />
</DashboardClientWrapper>
);
}
Expand Down
Binary file modified src/app/favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { AppProviders } from './AppProviders';

export const metadata: Metadata = {
icons: {
icon: '/images/logo-black-main.ico',
icon: '/images/favicon.ico',
},
title: 'Nextbase Ultimate',
description: 'Nextbase Ultimate',
Expand Down
4 changes: 0 additions & 4 deletions src/components/Projects/ProjectsCardList.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"use client";

import { Badge } from "@/components/ui/badge";
import { Card, CardContent } from "@/components/ui/card";
import { ScrollArea, ScrollBar } from "@/components/ui/scroll-area";
import { Table } from "@/types";
Expand Down Expand Up @@ -69,9 +68,6 @@ export const ProjectsCardList = ({
<Link href={`/project/${project.slug}`} className="block p-4">
<MotionCardContent className="p-0 space-y-3" variants={contentVariants} initial="hidden" animate="visible">
<motion.div className="flex justify-between items-center" variants={itemVariants}>
<Badge variant="secondary" className="text-xs font-normal">
{statusEmojis[project.project_status]} {capitalizeFirstLetter(project.project_status)}
</Badge>
<span className="text-xs text-muted-foreground">ID: {project.id.slice(0, 7)}</span>
</motion.div>
<motion.h2 className="text-lg font-semibold" variants={itemVariants}>{project.name}</motion.h2>
Expand Down

0 comments on commit 30ae131

Please sign in to comment.