-
Notifications
You must be signed in to change notification settings - Fork 14
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 #16 from Pradeep-Kumar-Rebbavarapu/main
Made Changes in Job Page
- Loading branch information
Showing
39 changed files
with
961 additions
and
321 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
import CompanyCard from "@/components/company/CompanyCard"; | ||
import { cookies } from "next/headers"; | ||
import { fetchCompany } from "@/helpers/api"; | ||
import { ChevronRight } from "lucide-react"; | ||
import { ChevronLeft } from "lucide-react"; | ||
import { Button } from "@/components/ui/button"; | ||
import { Input } from "@/components/ui/input"; | ||
import { ScrollArea } from "@/components/ui/scroll-area"; | ||
import { Separator } from "@/components/ui/separator"; | ||
interface Props {} | ||
|
||
interface company { | ||
id: string; | ||
name: string; | ||
metadata: object; | ||
createdAt: string; | ||
updatedAt: string; | ||
} | ||
|
||
const CompanyPage = async () => { | ||
const Companies = await fetchCompany(cookies()?.get("accessToken")?.value); | ||
|
||
if (Companies.companies.length === 0) { | ||
return ( | ||
<h1 className="text-center text-black text-3xl font-bold flex justify-center items-center w-full h-screen"> | ||
No Comapanies Currently Registered | ||
</h1> | ||
); | ||
} | ||
return ( | ||
<div className=""> | ||
<div className="border-r-2 rounded-md"> | ||
<div className=" !flex justify-between w-full border-b-2 rounded-md"> | ||
<div className="w-fit py-2 mx-2 my-auto">All Companies</div> | ||
|
||
<div className="w-fit flex "> | ||
{/* <div className="px-2 py-2 flex justify-center items-center w-full"><Button size="icon"> | ||
<ChevronLeft className="h-4 w-4" /> | ||
</Button></div> | ||
<div className="px-2 py-2 flex justify-center items-center w-full"><Button size="icon"> | ||
<ChevronRight className="h-4 w-4" /> | ||
</Button></div> */} | ||
</div> | ||
</div> | ||
|
||
<div id="main_content"> | ||
<div className="flex justify-center items-center my-10"> | ||
<Button>Add Company</Button> | ||
</div> | ||
<div className="m-4"> | ||
<Input type="text" placeholder="Search..." /> | ||
</div> | ||
|
||
<ScrollArea className="h-72 w-full rounded-md border-t-2"> | ||
<div className="p-4"> | ||
{Companies?.companies.map((Company: company, index: number) => { | ||
return ( | ||
<> | ||
<div | ||
key={index} | ||
className="cursor-pointer hover:text-gray-600 hover:scale-95 transition-all fade-in-out" | ||
> | ||
{Company.name} | ||
</div> | ||
<Separator className="my-2" /> | ||
</> | ||
); | ||
})} | ||
</div> | ||
</ScrollArea> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default CompanyPage; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
interface Props { | ||
children: React.ReactNode; | ||
allcompanies: React.ReactNode; | ||
} | ||
|
||
const CompanyLayout = ({ children, allcompanies }: Props) => { | ||
return ( | ||
<div className=""> | ||
{/* {allcompanies} */} | ||
<div className="mx-2 my-4 rounded-md bg-white"> | ||
{children} | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default CompanyLayout; |
Oops, something went wrong.
4de0e1a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
tpc-frontend – ./
tpc-frontend-delta.vercel.app
tpc-frontend-git-main-tpc-frontend.vercel.app
tpc-frontend-tpc-frontend.vercel.app