-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'hngprojects:dev' into feat/HNG-create-edit-product-deta…
…il-page-team-KIMIKO
- Loading branch information
Showing
43 changed files
with
735 additions
and
283 deletions.
There are no files selected for viewing
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,6 +1,17 @@ | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = { | ||
output: "standalone", | ||
output: 'standalone', | ||
images: { | ||
remotePatterns: [ | ||
{ | ||
protocol: 'https', | ||
hostname: 'lh3.googleusercontent.com', | ||
port: '', | ||
pathname: '/**', | ||
}, | ||
], | ||
}, | ||
transpilePackages: ["lucide-react"], | ||
}; | ||
|
||
export default nextConfig; | ||
export default nextConfig; |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
76 changes: 0 additions & 76 deletions
76
src/app/dashboard/(admin)/_components/layout/navbar/navbar.test.tsx
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...hboard/(admin)/admin/dashboard/client.tsx → src/app/dashboard/(admin)/admin/client.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
File renamed without changes.
File renamed without changes.
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
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
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
3 changes: 3 additions & 0 deletions
3
src/app/dashboard/(user-dashboard)/(user-metrics)/analytics/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default function DashboardAnalytics() { | ||
return <div>ANALYTICS</div>; | ||
} |
40 changes: 40 additions & 0 deletions
40
src/app/dashboard/(user-dashboard)/(user-metrics)/layout.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import type { PropsWithChildren } from "react"; | ||
|
||
import { DateSelector } from "~/app/dashboard/(user-dashboard)/_components/layout/dateselector"; | ||
import { Tablinks } from "~/app/dashboard/(user-dashboard)/_components/layout/tablinks"; | ||
import { Button } from "~/components/common/common-button"; | ||
|
||
const links = [ | ||
{ | ||
title: "Overview", | ||
href: "/dashboard", | ||
}, | ||
{ | ||
title: "Analytics", | ||
href: "/dashboard/analytics", | ||
}, | ||
{ | ||
title: "Reports", | ||
href: "/dashboard/reports", | ||
}, | ||
]; | ||
|
||
export default function UserMetricsLayout({ children }: PropsWithChildren) { | ||
return ( | ||
<div className="flex h-full flex-col gap-[37px] bg-background"> | ||
<div className="flex flex-wrap items-center justify-between gap-x-6 gap-y-2 pt-6"> | ||
<div className="space-y-6"> | ||
<h1 className="text-2xl font-semibold lg:text-[30px]">Dashboard</h1> | ||
<Tablinks links={links} /> | ||
</div> | ||
<div className="flex flex-wrap items-center gap-2 max-sm:flex-grow max-sm:justify-between"> | ||
<DateSelector /> | ||
<Button variant="primary" className="h-10"> | ||
Download | ||
</Button> | ||
</div> | ||
</div> | ||
<div className="flex-1 pb-9">{children}</div> | ||
</div> | ||
); | ||
} |
19 changes: 19 additions & 0 deletions
19
src/app/dashboard/(user-dashboard)/(user-metrics)/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { OverviewChart } from "~/app/dashboard/(user-dashboard)/_components/overview-chart"; | ||
import { OverviewRevenue } from "~/app/dashboard/(user-dashboard)/_components/overview-revenue"; | ||
import { OverviewSales } from "~/app/dashboard/(user-dashboard)/_components/overview-sales"; | ||
|
||
export default function DashboardOverview() { | ||
return ( | ||
<div className="flex flex-col gap-4"> | ||
<div> | ||
<OverviewRevenue /> | ||
</div> | ||
<div className="flex flex-wrap gap-4"> | ||
<OverviewChart className="flex-grow basis-full md:basis-1/2 lg:max-w-[787px]" /> | ||
<div className="flex-1 flex-grow md:min-w-[400px]"> | ||
<OverviewSales /> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} |
3 changes: 3 additions & 0 deletions
3
src/app/dashboard/(user-dashboard)/(user-metrics)/reports/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default function DashboardReports() { | ||
return <div>REPORTS</div>; | ||
} |
Oops, something went wrong.