-
Notifications
You must be signed in to change notification settings - Fork 0
Sections Structure
Nicole Madruga edited this page Dec 14, 2022
·
2 revisions
This should help Front-end developers understand the base UI display structure used in Application and Review pages.
A few hooks are used to build and update the sections structure. This structure is an object with keys as each section code
and storing everything related to the section on a SectionState
object. This object contain the properties: details
, pages
, progress
and assigned
(only used in reviews). In the pages
object each page name
has all the PageState
object which contains all elements (and corresponding response and review) in each page.
-
useLoadSectionsStructure
- responsible for creating the structure (withoutprogress
orassigned
properties) -
useRevalidateApplication
- receivessectionsStructure
and uses helperupdateSectionsProgress
to setprogress
in each section -
useLoadReview
- CalluseLoadSectionsStructure
and uses helperupdateSectionsReviews
to set reviews in the structure
Powered by mSupply