-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d2edc3b
commit c8322e4
Showing
49 changed files
with
315 additions
and
308 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,5 +1,5 @@ | ||
'use server' | ||
import { Action } from "@/actions/Action" | ||
import { Companies } from "@/services/career/companies" | ||
import { Action } from '@/actions/Action' | ||
import { Companies } from '@/services/career/companies' | ||
|
||
export const createCompanyAction = Action(Companies.create) | ||
export const createCompanyAction = Action(Companies.create) |
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,5 +1,5 @@ | ||
'use server' | ||
import { ActionNoData } from "@/actions/Action" | ||
import { Companies } from "@/services/career/companies" | ||
import { ActionNoData } from '@/actions/Action' | ||
import { Companies } from '@/services/career/companies' | ||
|
||
export const destroyCompanyAction = ActionNoData(Companies.destory) | ||
export const destroyCompanyAction = ActionNoData(Companies.destory) |
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,5 +1,5 @@ | ||
'use server' | ||
import { ActionNoData } from "@/actions/Action" | ||
import { Companies } from "@/services/career/companies" | ||
import { ActionNoData } from '@/actions/Action' | ||
import { Companies } from '@/services/career/companies' | ||
|
||
export const readCompanyPageAction = ActionNoData(Companies.readPage) | ||
export const readCompanyPageAction = ActionNoData(Companies.readPage) |
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,5 +1,5 @@ | ||
'use server' | ||
import { Action } from "@/actions/Action" | ||
import { Companies } from "@/services/career/companies" | ||
import { Action } from '@/actions/Action' | ||
import { Companies } from '@/services/career/companies' | ||
|
||
export const updateComanyAction = Action(Companies.update) | ||
export const updateComanyAction = Action(Companies.update) |
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
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,21 +1,21 @@ | ||
import type { CompanyExpanded } from '@/services/career/companies/Types' | ||
import Company from './Company' | ||
import { SessionMaybeUser } from '@/auth/Session' | ||
import type { SessionMaybeUser } from '@/auth/Session' | ||
import type { CompanyExpanded } from '@/services/career/companies/Types' | ||
|
||
/** | ||
* Used to render schools server side and client side in consistent way | ||
* @param asClient - If the company is rendered as a client | ||
* @param session - The session of the user used to determine if the user is an admin of the company | ||
* @returns A function that takes a company and returns a Company component | ||
*/ | ||
// eslint-disable-next-line react/display-name | ||
export const companyListRenderer = ({ | ||
asClient, | ||
asClient, | ||
session, | ||
disableEditing = false | ||
}: { | ||
asClient: boolean, | ||
session: SessionMaybeUser, | ||
disableEditing?: boolean | ||
// eslint-disable-next-line react/display-name | ||
}) => (company: CompanyExpanded) => | ||
<Company disableEdit={disableEditing} session={session} key={company.id} company={company} asClient={asClient} /> |
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
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
Oops, something went wrong.