This repository has been archived by the owner on Feb 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
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 #435 from SELab-2/feature/calendar_schedule
Feature/calendar schedule
- Loading branch information
Showing
28 changed files
with
2,797 additions
and
3,848 deletions.
There are no files selected for viewing
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
17 changes: 17 additions & 0 deletions
17
frontend/components/autocompleteComponents/studentAutocomplete.tsx
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 @@ | ||
import React from "react"; | ||
import { getStudents, User, userSearchString } from "@/lib/user"; | ||
import AutocompleteComponent, { GenericProps } from "@/components/autocompleteComponents/autocompleteComponent"; | ||
|
||
const StudentAutocomplete: React.FC<GenericProps> = ({ initialId, setObjectId, required }) => { | ||
return ( | ||
<AutocompleteComponent | ||
initialId={initialId} | ||
label={`Selecteer student${required ? "*" : ""}`} | ||
fetchOptions={getStudents} | ||
mapping={(user: User) => userSearchString(user)} | ||
setObjectId={setObjectId} | ||
/> | ||
); | ||
}; | ||
|
||
export default StudentAutocomplete; |
17 changes: 17 additions & 0 deletions
17
frontend/components/autocompleteComponents/tourUsersAutocomplete.tsx
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 @@ | ||
import React from "react"; | ||
import { getTourUsersFromRegion, User, userSearchString } from "@/lib/user"; | ||
import AutocompleteComponent, { TourUserProps } from "@/components/autocompleteComponents/autocompleteComponent"; | ||
|
||
const TourUserAutocomplete: React.FC<TourUserProps> = ({ initialId, setObjectId, tourId = null }) => { | ||
return ( | ||
<AutocompleteComponent | ||
initialId={initialId} | ||
label={""} | ||
fetchOptions={() => getTourUsersFromRegion(tourId)} | ||
mapping={(user: User) => userSearchString(user)} | ||
setObjectId={setObjectId} | ||
/> | ||
); | ||
}; | ||
|
||
export default TourUserAutocomplete; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.