diff --git a/app/dashboard/sessions/page.tsx b/app/dashboard/sessions/page.tsx index 7cf7554..e0ea256 100644 --- a/app/dashboard/sessions/page.tsx +++ b/app/dashboard/sessions/page.tsx @@ -48,6 +48,12 @@ export default function SessionsPage() { const sortOrderId = useId(); const sortOrderHelpId = useId(); const resultsHeadingId = useId(); + const startDateFilterId = useId(); + const startDateHelpId = useId(); + const endDateFilterId = useId(); + const endDateHelpId = useId(); + const sortKeyId = useId(); + const sortKeyHelpId = useId(); // Filter states const [filterOptions, setFilterOptions] = useState({ @@ -276,43 +282,43 @@ export default function SessionsPage() { {/* Start Date Filter */}
- + setStartDate(e.target.value)} - aria-describedby="start-date-help" + aria-describedby={startDateHelpId} /> -
+
Filter sessions from this date onwards
{/* End Date Filter */}
- + setEndDate(e.target.value)} - aria-describedby="end-date-help" + aria-describedby={endDateHelpId} /> -
+
Filter sessions up to this date
{/* Sort Key */}
- + -
+
Choose field to sort sessions by
diff --git a/app/platform/companies/[id]/page.tsx b/app/platform/companies/[id]/page.tsx index d70d943..42cae11 100644 --- a/app/platform/companies/[id]/page.tsx +++ b/app/platform/companies/[id]/page.tsx @@ -70,6 +70,12 @@ export default function CompanyManagement() { const params = useParams(); const { toast } = useToast(); + const companyNameFieldId = useId(); + const companyEmailFieldId = useId(); + const maxUsersFieldId = useId(); + const inviteNameFieldId = useId(); + const inviteEmailFieldId = useId(); + const fetchCompany = useCallback(async () => { try { const response = await fetch(`/api/platform/companies/${params.id}`); @@ -473,9 +479,9 @@ export default function CompanyManagement() {
- + setEditData((prev) => ({ @@ -487,9 +493,9 @@ export default function CompanyManagement() { />
- + @@ -502,9 +508,9 @@ export default function CompanyManagement() { />
- + @@ -708,9 +714,9 @@ export default function CompanyManagement() {
- + setInviteData((prev) => ({ ...prev, name: e.target.value })) @@ -719,9 +725,9 @@ export default function CompanyManagement() { />
- +