diff --git a/__tests__/components/__snapshots__/classInviteTable.test.jsx.snap b/__tests__/components/__snapshots__/classInviteTable.test.jsx.snap
index 3763d8aa7..bbe11f051 100644
--- a/__tests__/components/__snapshots__/classInviteTable.test.jsx.snap
+++ b/__tests__/components/__snapshots__/classInviteTable.test.jsx.snap
@@ -12,11 +12,46 @@ exports[`ClassInviteTable displays invites in a table 1`] = `
className="group flex items-center"
>
Classroom:
how to build a website
+
+
+
+
+ Certifications
+
+
+ No certifications assigned
+
+
+
@@ -53,7 +88,8 @@ exports[`ClassInviteTable displays invites in a table 1`] = `
learn how to build a website in a jiffy
diff --git a/__tests__/components/__snapshots__/modal.test.jsx.snap b/__tests__/components/__snapshots__/modal.test.jsx.snap
index 43a6cdab4..ced4b5e4c 100644
--- a/__tests__/components/__snapshots__/modal.test.jsx.snap
+++ b/__tests__/components/__snapshots__/modal.test.jsx.snap
@@ -78,11 +78,18 @@ exports[`Modal Component renders whole form after header clicked 1`] = `
+
+ 0
+ /100
+
+
+ 0
+ /500
+
-
+
Classroom: {currentClass.classroomName}
+
+
+
+
Certifications
+ {getSelectedCerts().length > 0 ? (
+
+ {getSelectedCerts().map(cert => (
+ -
+ {cert.displayName}
+
+ ))}
+
+ ) : (
+
No certifications assigned
+ )}
+
+
{/* <-------Menu Item Selection -----> */}
@@ -291,9 +322,13 @@ export default function ClassInviteTable({
}
id='class-name'
name='classname'
+ maxLength={100}
className='appearance-none rounded-none relative block w-full px-3 py-2 border border-gray-300 placeholder-gray-500 text-gray-900 rounded-t-md focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 focus:z-10 sm:text-sm'
placeholder={currentClass.classroomName}
>
+
+ {formData.className?.length ?? 0}/100
+
@@ -311,9 +346,13 @@ export default function ClassInviteTable({
}
id='description-text'
name='description'
+ maxLength={500}
className='appearance-none rounded-none relative block w-full px-3 py-2 border border-gray-300 placeholder-gray-500 text-gray-900 rounded-t-md focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 focus:z-10 sm:text-sm'
placeholder={currentClass.description}
>
+
+ {formData.description?.length ?? 0}/500
+
@@ -356,7 +395,10 @@ export default function ClassInviteTable({
)}
-
+
{currentClass.description}
diff --git a/components/modal.js b/components/modal.js
index 97238a3af..97d7266a4 100644
--- a/components/modal.js
+++ b/components/modal.js
@@ -105,9 +105,13 @@ export default function Modal({
id='class-name'
name='classname'
required
+ maxLength={100}
className='appearance-none rounded-none relative block w-full px-3 py-2 border border-gray-300 placeholder-gray-500 text-gray-900 rounded-t-md focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 focus:z-10 sm:text-sm'
placeholder='Class Name'
>
+
+ {formData.classroomName?.length ?? 0}/100
+
@@ -126,9 +130,13 @@ export default function Modal({
id='description-text'
name='description'
required
+ maxLength={500}
className='appearance-none rounded-none relative block w-full px-3 py-2 border border-gray-300 placeholder-gray-500 text-gray-900 rounded-t-md focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 focus:z-10 sm:text-sm'
placeholder='Description'
>
+
+ {formData.description?.length ?? 0}/500
+