Closed chase-moskal closed 2 years ago
storeModel.get.is.userLoggedIn
storeModel.get.is.storeActive
const {userLoggedIn, storeActive} = storeModel.get.is
// ... render the correct slots
if we want to render a loading spinner when either accessOp (user login) or connectStatusOp (stripe store status) is loading, we can do something like this:
const metaOp = ops.combine(
storeModel.state.user.accessOp,
storeModel.state.stripeConnect.connectStatusOp,
)
return renderOp(metaOp, () => html`
<h3>Customer Portal</h3>
<p>...</p>
`)
customer portal
button that makes popup appear<xiome-store-customer-portal>
h1
sayingfake customer portal
StripeConnectStatus.Ready
)