Skip to content

Commit

Permalink
💄 Gloss: Update Conments
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed Jan 9, 2023
1 parent 55e72b4 commit cc38f21
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/ModalView/ModalView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ export class ModalView extends
}

if (nextVisible) {
// when showing modal, mount children first,
// Show modal...
// When showing modal, mount children first,
await Helpers.setStateAsync(this, {
visible: nextVisible,
// pass down received props to childProps via state
Expand All @@ -201,7 +202,8 @@ export class ModalView extends
nextVisible
);

// when finish hiding modal, unmount children
// Hide modal...
// When finish hiding modal, unmount children
if (!nextVisible) {
await Helpers.setStateAsync(this, {
visible: nextVisible,
Expand Down

0 comments on commit cc38f21

Please sign in to comment.