This repository was archived by the owner on Jan 6, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +24
-5
lines changed Expand file tree Collapse file tree 3 files changed +24
-5
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import React, { useEffect } from 'react'
22import { Flex , Box , Type } from 'blockstack-ui'
33import { connect } from 'react-redux'
44
5- import { selectMaker , selectAppList , selectCurrentApp } from '@stores/maker/reducer '
5+ import { selectMaker , selectAppList , selectCurrentApp } from '@stores/maker/selectors '
66import { fetchApps , selectAppAction } from '@stores/maker/actions'
77import { selectApiServer , selectUser } from '@stores/apps/selectors'
88import { Page } from '@components/page'
Original file line number Diff line number Diff line change @@ -74,7 +74,3 @@ function makerReducer(state = initialState, action) {
7474}
7575
7676export default makerReducer
77-
78- export const selectMaker = state => state . maker
79- export const selectAppList = state => state . maker . appIds . map ( id => state . maker . appEntities [ id ] )
80- export const selectCurrentApp = state => state . maker . appEntities [ state . maker . selectedAppId ]
Original file line number Diff line number Diff line change 1+ const updateEntity = ( state , id , newProps ) => ( {
2+ ...state ,
3+ appEntities : {
4+ ...state . appEntities ,
5+ [ id ] : {
6+ ...state . appEntities [ id ] ,
7+ ...newProps
8+ }
9+ }
10+ } )
11+
12+ export const selectMaker = state => state . maker
13+
14+ export const selectAppList = state => state . maker . appIds . map ( id => state . maker . appEntities [ id ] )
15+
16+ export const selectCurrentApp = state => state . maker . appEntities [ state . maker . selectedAppId ]
17+
18+ // export const selectCompetionStatus = state => {
19+ // const selectedApp = state.appEntities[state.selectedAppId]
20+ // return {
21+ // paymentDetailsComplete
22+ // }
23+ // }
You can’t perform that action at this time.
0 commit comments