Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.

Commit cdca8d1

Browse files
committed
fix: Point modal to app element
1 parent e75a7ad commit cdca8d1

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

components/maker/modal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const MakerModal = ({ isOpen, handleClose, children }) => (
4040
isOpen={isOpen}
4141
onRequestClose={handleClose}
4242
style={customStyles}
43-
ariaHideApp={false}
43+
appElement={document.querySelector('#__next')}
4444
>
4545
<CloseButton handleClick={handleClose} />
4646
{children}

components/maker/status/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const AppMiningIncomplete = () => (
6060
</MakerCardText>
6161
)
6262

63-
const Status = ({ app, status }) => {
63+
const Status = ({ app }) => {
6464
const isReady = isMiningReady(app)
6565

6666
return (

stores/maker/selectors.js

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,14 @@ export const selectAppList = state => state.maker.appIds.map(id => state.maker.a
1515

1616
export const selectCurrentApp = state => state.maker.appEntities[state.maker.selectedAppId]
1717

18-
// export const selectCompetionStatus = state => {
19-
// const selectedApp = state.appEntities[state.selectedAppId]
20-
// return {
21-
// paymentDetailsComplete
22-
// }
23-
// }
18+
export const selectCompetionStatus = state => {
19+
const selectedApp = state.maker.appEntities[state.maker.selectedAppId]
20+
if (!selectedApp) {
21+
return {}
22+
}
23+
return {
24+
paymentDetailsComplete: selectedApp.BTCAddress && selectedApp.stacksAddress,
25+
kycComplete: selectedApp.isKYCVerified,
26+
legalComplete: false
27+
}
28+
}

0 commit comments

Comments
 (0)