Skip to content

Commit

Permalink
refactor: change add student to add resident, change url length (#740)
Browse files Browse the repository at this point in the history
  • Loading branch information
CK-7vn authored Feb 14, 2025
1 parent 6b37a9f commit 1689d19
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion frontend/src/Components/forms/AddLinkForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default function AddLinkForm({
label="Title"
interfaceRef="title"
required
length={25}
length={255}
errors={errors}
register={register}
/>
Expand Down
16 changes: 9 additions & 7 deletions frontend/src/Pages/StudentManagement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,14 +154,14 @@ export default function StudentManagement() {

<div
className="tooltip tooltip-left"
data-tip="Add Student"
data-tip="Add Resident"
>
<button
className="button "
onClick={() => addUserModal.current?.showModal()}
>
<PlusCircleIcon className="w-4 my-auto" />
Add Student
Add Resident
</button>
</div>
</div>
Expand Down Expand Up @@ -235,7 +235,9 @@ export default function StudentManagement() {
<td className="justify-self-end">
<div className="flex space-x-4">
<ULIComponent
dataTip={'Edit Student'}
dataTip={
'Edit Resident'
}
tooltipClassName="tooltip-left cursor-pointer"
icon={PencilSquareIcon}
onClick={() => {
Expand All @@ -260,7 +262,7 @@ export default function StudentManagement() {

<ULIComponent
dataTip={
'Delete Student'
'Delete Resident'
}
tooltipClassName="tooltip-left cursor-pointer"
icon={TrashIcon}
Expand Down Expand Up @@ -303,7 +305,7 @@ export default function StudentManagement() {
<Modal
ref={addUserModal}
type={ModalType.Add}
item="Student"
item="Resident"
form={
<AddUserForm
onSuccess={onAddUserSuccess}
Expand All @@ -314,7 +316,7 @@ export default function StudentManagement() {
<Modal
ref={editUserModal}
type={ModalType.Edit}
item="Student"
item="Resident"
form={
targetUser ? (
<EditUserForm
Expand All @@ -329,7 +331,7 @@ export default function StudentManagement() {
<Modal
ref={deleteUserModal}
type={ModalType.Confirm}
item="Delete Student"
item="Delete Resident"
form={
<DeleteForm
item="User"
Expand Down

0 comments on commit 1689d19

Please sign in to comment.