Skip to content

Commit

Permalink
Onboarding: update deployment signing information (aragon#1211)
Browse files Browse the repository at this point in the history
  • Loading branch information
e18r authored and sohkai committed Dec 18, 2019
1 parent 4726fd6 commit 2d2e24f
Showing 1 changed file with 31 additions and 4 deletions.
35 changes: 31 additions & 4 deletions src/onboarding/Deployment/DeploymentStepsPanel.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import React from 'react'
import PropTypes from 'prop-types'
import { textStyle, GU, useTheme, ProgressBar, Info } from '@aragon/ui'
import { textStyle, GU, Link, useTheme, ProgressBar, Info } from '@aragon/ui'
import DeploymentStepsItem from './DeploymentStepsItem'
import { TransactionStatusType } from '../../prop-types'
import { useWallet } from '../../wallet'

function DeploymentStepsPanel({ transactionsStatus, pending, allSuccess }) {
const theme = useTheme()
const { providerInfo } = useWallet()

return (
<aside
Expand Down Expand Up @@ -65,10 +67,24 @@ function DeploymentStepsPanel({ transactionsStatus, pending, allSuccess }) {
</div>

{!allSuccess && (
<Info>
<Info mode="warning">
It might take some time before these transactions get processed.
Please be patient and{' '}
<strong>do not close this window until it finishes.</strong>
Please be patient and <strong>do not close this window</strong> until
it finishes.{' '}
{providerInfo.id === 'metamask' && (
<>
Additionally, do not use the{' '}
<InlineLink href="https://metamask.zendesk.com/hc/en-us/articles/360015489251-How-to-Speed-Up-a-Transaction">
"Speed Up"
</InlineLink>{' '}
MetaMask feature, otherwise you may not be able to finish creating
your organization.{' '}
</>
)}
For more details,{' '}
<InlineLink href="https://help.aragon.org/article/39-launch-taking-a-long-time-to-process">
refer to the help desk.
</InlineLink>
</Info>
)}
</aside>
Expand All @@ -86,4 +102,15 @@ DeploymentStepsPanel.propTypes = {
).isRequired,
}

const InlineLink = ({ href, children }) => (
<Link href={href} css={'display: inline; white-space: normal'}>
{children}
</Link>
)

InlineLink.propTypes = {
href: PropTypes.string.isRequired,
children: PropTypes.node.isRequired,
}

export default DeploymentStepsPanel

0 comments on commit 2d2e24f

Please sign in to comment.