-
Notifications
You must be signed in to change notification settings - Fork 3
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 #281 from NIAEFEUP/develop
NIJobs Release 1.1.0
- Loading branch information
Showing
87 changed files
with
5,142 additions
and
1,202 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 |
---|---|---|
|
@@ -79,5 +79,6 @@ npm-debug.log* | |
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# .vscode directory | ||
# IDE directories | ||
.vscode/ | ||
.idea/ |
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
Large diffs are not rendered by default.
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 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,7 +1,20 @@ | ||
export const NavbarActionTypes = Object.freeze({ | ||
TOGGLE_LOGIN_MODAL: "TOGGLE_LOGIN_MODAL", | ||
SET_AUTH_PAGE: "SET_AUTH_PAGE", | ||
SET_RECOVERY_TOKEN: "SET_RECOVERY_TOKEN", | ||
}); | ||
|
||
export const toggleLoginModal = () => ({ | ||
export const toggleAuthModal = (page) => ({ | ||
type: NavbarActionTypes.TOGGLE_LOGIN_MODAL, | ||
page: page, | ||
}); | ||
|
||
export const setAuthPage = (page) => ({ | ||
type: NavbarActionTypes.SET_AUTH_PAGE, | ||
page: page, | ||
}); | ||
|
||
export const setRecoveryToken = (token) => ({ | ||
type: NavbarActionTypes.SET_RECOVERY_TOKEN, | ||
token: token, | ||
}); |
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,9 +1,9 @@ | ||
import Constants from "../../../utils/Constants"; | ||
import { getHumanError } from "./CompanyApplicationUtils"; | ||
describe("CompanyApplicationUtils", () => { | ||
|
||
it("should return a readable error", () => { | ||
expect(getHumanError("email-already-exists")).toBe("The provided email is already associated to our platform."); | ||
expect(getHumanError("company-application-duplicate-email")).toBe("There is already an application associated with that email."); | ||
expect(getHumanError("random-error")).toBe("An error occurred, please try again."); | ||
expect(getHumanError("random-error")).toBe(Constants.UNEXPECTED_ERROR_MESSAGE); | ||
}); | ||
}); |
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.