+
+ Design for thousands of UT students through Longhorn Developers on real-world projects like UT Reg.
+ Plus.—build your portfolio and collaborate in Figma. Apply{' '}
+
+ here
+
+ !
+
+
-
- Interested in helping us develop UT Registration Plus? Check out our{' '}
-
- Discord Server
- {' '}
- and{' '}
-
- GitHub
-
- !
-
-
,
+ recruitmentType === 'DEVELOPER' ? : ,
container
);
}
/**
- * Determines if recruitment can be done from the current department.
+ * Determines what type of recruitment can be done from the current department.
*
- * @returns True if recruitment can be done from the current department, false otherwise.
+ * @returns 'DEVELOPER' or 'DESIGNER' if the current department recruits for that respective type, otherwise 'NONE'
*/
-export const canRecruitFrom = (): boolean => {
+export const getRecruitmentType = (): RecruitmentType => {
const params = ['fos_fl', 'fos_cn'];
let department = '';
params.forEach(p => {
@@ -66,8 +91,18 @@ export const canRecruitFrom = (): boolean => {
department = param;
}
});
+
if (!department) {
- return false;
+ return 'NONE';
}
- return RECRUIT_FROM_DEPARTMENTS.includes(department);
+
+ if (DEVELOPER_RECRUIT_FROM_DEPARTMENTS.has(department)) {
+ return 'DEVELOPER';
+ }
+
+ if (DESIGNER_RECRUIT_FROM_DEPARTMENTS.has(department)) {
+ return 'DESIGNER';
+ }
+
+ return 'NONE';
};