Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Onboarding: small PR changes #986

Merged
merged 13 commits into from
Sep 9, 2019
1 change: 1 addition & 0 deletions src/components/Carousel/PrevNext.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ function PrevNext({ onClick, type }) {
position: absolute;
z-index: 1;
top: 50%;
sohkai marked this conversation as resolved.
Show resolved Hide resolved
height: ${6 * GU}px;
sohkai marked this conversation as resolved.
Show resolved Hide resolved
${next ? 'right' : 'left'}: ${5 * GU}px;
`}
>
Expand Down
2 changes: 1 addition & 1 deletion src/onboarding2/Onboarding/Onboarding.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ function Onboarding({ account, status, selectorNetworks, walletWeb3, web3 }) {

Onboarding.propTypes = {
account: EthereumAddressType,
status: PropTypes.string.isRequired,
status: PropTypes.oneOf(['none', 'welcome', 'open', 'create']).isRequired,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

selectorNetworks: PropTypes.arrayOf(PropTypes.arrayOf(PropTypes.string))
.isRequired,
walletWeb3: PropTypes.object,
Expand Down
6 changes: 2 additions & 4 deletions src/onboarding2/Welcome/Welcome.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useCallback, useMemo } from 'react'
import PropTypes from 'prop-types'
import { ButtonText, DropDown, GU, Layout, Split, useTheme } from '@aragon/ui'
import { Link, DropDown, GU, Layout, Split, useTheme } from '@aragon/ui'
import { network } from '../../environment'
import Header from '../Header/Header'
import OpenOrg from './OpenOrg'
Expand Down Expand Up @@ -94,9 +94,7 @@ function Welcome({
`}
>
Do you need more information about Aragon?{' '}
<ButtonText href="https://wiki.aragon.org/" external>
Visit our Wiki
</ButtonText>
<Link href="https://wiki.aragon.org/">Visit our Wiki</Link>
</p>
</Layout>
</div>
Expand Down
4 changes: 3 additions & 1 deletion src/onboarding2/create-utils.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { network, web3Providers } from '../environment'
import { getWeb3 } from '../web3-utils'

const TEMPLATE_STATE_KEY = `create-org:${network.type}`

export function loadTemplateState() {
const value = localStorage.getItem(`create-org:${network.type}`)
const value = localStorage.getItem(TEMPLATE_STATE_KEY)
try {
const data = JSON.parse(value)
return {
Expand Down