Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Madhawa97 committed Sep 9, 2024
1 parent f84717c commit 74cb774
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,13 @@ const MentorApplications: React.FC = () => {
className="p-2 mb-4 border border-gray-300 rounded-md ml-4"
>
<option value="">All Categories</option>
{categoriesData?.map((category: { uuid: string; category: string }) => (
{categoriesData?.map(
(category: { uuid: string; category: string }) => (
<option key={category.uuid} value={category.uuid}>
{category.category}
</option>
))}
)
)}
</select>
</div>
<p className="text-md m-4">Total Mentee Slots: {totalMentees}</p>
Expand Down
26 changes: 14 additions & 12 deletions src/pages/MentorRegistration/MentorRegistration.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -275,18 +275,20 @@ const MentorRegistrationPage: React.FC = () => {
<label className="block text-sm font-medium text-gray-600">
Category
</label>
{!categoriesLoading && <select
className="mt-1 p-2 w-1/2 border rounded-md"
{...register('category')}
>
{allCategories.map(
(category: { uuid: string; category: string }) => (
<option key={category.uuid} value={category.uuid}>
{category.category}
</option>
)
)}
</select>}
{!categoriesLoading && (
<select
className="mt-1 p-2 w-1/2 border rounded-md"
{...register('category')}
>
{allCategories.map(
(category: { uuid: string; category: string }) => (
<option key={category.uuid} value={category.uuid}>
{category.category}
</option>
)
)}
</select>
)}
</div>
<FormTextarea
placeholder="Engineering, Mechanical Engineering, Mechanical designing"
Expand Down

0 comments on commit 74cb774

Please sign in to comment.