diff --git a/src/shared/components/person/registration-applications.tsx b/src/shared/components/person/registration-applications.tsx index 251a109f..8a5efbda 100644 --- a/src/shared/components/person/registration-applications.tsx +++ b/src/shared/components/person/registration-applications.tsx @@ -28,9 +28,10 @@ import { RegistrationApplication } from "../common/registration-application"; import { UnreadCounterService } from "../../services"; import { getHttpBaseInternal } from "../../utils/env"; -enum UnreadOrAll { +enum RegistrationState { Unread, All, + Denied, } type RegistrationApplicationsData = RouteDataResponse<{ @@ -40,7 +41,7 @@ type RegistrationApplicationsData = RouteDataResponse<{ interface RegistrationApplicationsState { appsRes: RequestState; siteRes: GetSiteResponse; - unreadOrAll: UnreadOrAll; + registrationState: RegistrationState; page: number; isIsomorphic: boolean; } @@ -53,7 +54,7 @@ export class RegistrationApplications extends Component< state: RegistrationApplicationsState = { appsRes: EMPTY_REQUEST, siteRes: this.isoData.site_res, - unreadOrAll: UnreadOrAll.Unread, + registrationState: RegistrationState.Unread, page: 1, isIsomorphic: false, }; @@ -132,7 +133,7 @@ export class RegistrationApplications extends Component< ); } - unreadOrAllRadios() { + RegistrationStateRadios() { const radioId = randomStr(); return ( @@ -141,14 +142,14 @@ export class RegistrationApplications extends Component< id={`${radioId}-unread`} type="radio" className="btn-check" - value={UnreadOrAll.Unread} - checked={this.state.unreadOrAll === UnreadOrAll.Unread} - onChange={linkEvent(this, this.handleUnreadOrAllChange)} + value={RegistrationState.Unread} + checked={this.state.registrationState === RegistrationState.Unread} + onChange={linkEvent(this, this.handleRegistrationStateChange)} />