// Copyright 2015-2018 Parity Technologies (UK) Ltd. // This file is part of Parity. // // SPDX-License-Identifier: BSD-3-Clause import React, { Component } from 'react'; import { Form as FetherForm, Header } from 'fether-ui'; import { inject, observer } from 'mobx-react'; import ReactMarkdown from 'react-markdown'; import Health from '../Health'; import termsAndConditions from './termsAndConditions.md'; /** * Options to pass into the renderer of ReactMarkdown */ const reactMarkdownOptions = { link: props => ( {props.children} ) }; @inject('onboardingStore') @observer class Onboarding extends Component { state = { markdown: '' }; componentWillMount () { window .fetch(termsAndConditions) .then(response => { return response.text(); }) .then(markdown => { this.setState({ markdown }); }); } handleFirstRun = () => { // Not first run anymore after clicking Accept this.props.onboardingStore.setIsFirstRun(false); }; render () { return (
Terms of Use} />
); } } export default Onboarding;