import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { StoryContainer } from './helpers'; import { Panel, TextField, Button } from '../src'; const styles = { main: { margin: 15, maxWidth: 600, lineHeight: 1.4, fontFamily: '"Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif', }, logo: { width: 200, }, link: { color: '#1474f3', textDecoration: 'none', borderBottom: '1px solid #1474f3', paddingBottom: 2, }, code: { fontSize: 15, fontWeight: 600, padding: "2px 5px", border: "1px solid #eae9e9", borderRadius: 4, backgroundColor: '#f3f2f2', color: '#3a3a3a', }, }; class Welcome extends React.Component { showApp(e) { e.preventDefault(); if(this.props.showApp) this.props.showApp(); } render() { return (

Welcome to Matchbox

This is a component dev environment for the SparkPost React WebUI.

); } } export default storiesOf('Welcome', module) .add('to Storybook', () => ( ));