keepid / keepid_client

Keep.id Client application built with TypeScript and React.js
Apache License 2.0
8 stars 4 forks source link

Implement dynamic "Select your Situation" titles for different application types. #524

Open timliang4 opened 10 hours ago

timliang4 commented 10 hours ago

Issue: Different application types (Social Security Card, Driver's License, etc.) require different Select your Situation titles, as specified in the Figma.

Solution: Changed title attribute of SelectApplicationFormPage type to a function that maps a string (the application type) to another string (the title). This way, different application types can render different titles.

Screenshots:

Screenshot 2024-11-24 at 6 23 36 PM Screenshot 2024-11-24 at 6 24 09 PM Screenshot 2024-11-24 at 6 24 26 PM