-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from Cubeseed/fix/lint-issues
[eslint] linting fixed after adding lint rules
- Loading branch information
Showing
21 changed files
with
1,127 additions
and
365 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
import Navbar from "@/component/navbar/Navbar"; | ||
import DashboardNavbar from "@/component/dashboard/DashboardNavbar/DashboardNavbar"; | ||
import DashboardSidePannel from "@/component/dashboard/DashboardSidePannel"; | ||
import Navbar from "@/component/navbar/Navbar" | ||
import DashboardNavbar from "@/component/dashboard/DashboardNavbar/DashboardNavbar" | ||
import DashboardSidePannel from "@/component/dashboard/DashboardSidePannel" | ||
|
||
export const metadata = { | ||
title: "Next.js", | ||
description: "Generated by Next.js", | ||
}; | ||
} | ||
|
||
export default function DashboardLayout({ | ||
children, | ||
}: { | ||
children: React.ReactNode; | ||
children: React.ReactNode | ||
}) { | ||
return ( | ||
<div className="flex min-h-screen flex-col"> | ||
<header className="sticky inset-0 "> | ||
<Navbar /> | ||
</header> | ||
<div> | ||
<aside className="w-[250px] h-screen fixed inset-0 bg-white shadow-2xl"> | ||
<DashboardSidePannel/> | ||
<aside className="fixed inset-0 h-screen w-[250px] bg-white shadow-2xl"> | ||
<DashboardSidePannel /> | ||
</aside> | ||
<main className="ml-[250px]">{children}</main> | ||
</div> | ||
</div> | ||
); | ||
) | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,49 @@ | ||
import Image from "next/image"; | ||
import check from "@cs/public/check.svg"; | ||
import ellipse from "@cs/public/ellipse.png"; | ||
import Link from "next/link"; | ||
import Image from "next/image" | ||
import check from "@cs/public/check.svg" | ||
import ellipse from "@cs/public/ellipse.png" | ||
import Link from "next/link" | ||
|
||
export interface CreateSuccessProps { | ||
isSuccess: boolean; | ||
setSuccess: React.Dispatch<React.SetStateAction<boolean>>; | ||
isSuccess: boolean | ||
setSuccess: React.Dispatch<React.SetStateAction<boolean>> | ||
} | ||
|
||
export default function CreateSucess({ isSuccess, setSuccess }: CreateSuccessProps) { | ||
if(!isSuccess) return null; | ||
export default function CreateSucess({ | ||
isSuccess, | ||
setSuccess, | ||
}: CreateSuccessProps) { | ||
if (!isSuccess) return null | ||
return ( | ||
<div className="grid items-center h-screen w-screen fixed inset-0 backdrop-brightness-[30%]"> | ||
<div className="grid place-items-center w-[60%] py-8 px-8 bg-white text-primary-100 mx-auto max-h-[90%] shadow-lg relative rounded-[25px]"> | ||
<div className="fixed inset-0 grid h-screen w-screen items-center backdrop-brightness-[30%]"> | ||
<div className="text-primary-100 relative mx-auto grid max-h-[90%] w-[60%] place-items-center rounded-[25px] bg-white p-8 shadow-lg"> | ||
<span | ||
className="grid items-center absolute right-[3%] top-[1%] cursor-pointer z-10" | ||
className="absolute right-[3%] top-[1%] z-10 grid cursor-pointer items-center" | ||
onClick={() => setSuccess(false)} | ||
> | ||
X | ||
</span> | ||
<div> | ||
<Image src={check} alt={check} /> | ||
</div> | ||
<p className="text-[22px] font-medium">Your invoice has been sent successfully!</p> | ||
<p className="text-[22px] font-medium"> | ||
Your invoice has been sent successfully! | ||
</p> | ||
<p>Your invoice can now be downloaded.</p> | ||
<div className="w-full flex justify-between font-medium mt-20"> | ||
<button onClick={() => setSuccess(false)} className="text-accent rounded-[100px] py-3 px-6 h-[44px] bg-transparent flex items-center border-2 border-secondary"> | ||
<div className="mt-20 flex w-full justify-between font-medium"> | ||
<button | ||
onClick={() => setSuccess(false)} | ||
className="text-accent border-secondary flex h-[44px] items-center rounded-[100px] border-2 bg-transparent px-6 py-3" | ||
> | ||
Close | ||
</button> | ||
<Link className="bg-secondary text-black rounded-[100px] py-3 px-6 h-[44px] flex items-center" href="dashboard/invoice">View Invoice</Link> | ||
<Link | ||
className="bg-secondary flex h-[44px] items-center rounded-[100px] px-6 py-3 text-black" | ||
href="dashboard/invoice" | ||
> | ||
View Invoice | ||
</Link> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
) | ||
} |
Oops, something went wrong.