Commit e156d790 authored by Patrik Meijer's avatar Patrik Meijer
Browse files

Move demo next to components

parent a67f7071
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4,8 +4,8 @@ import ExpansionPanel from '@material-ui/core/ExpansionPanel';
import ExpansionPanelSummary from '@material-ui/core/ExpansionPanelSummary';
import Typography from '@material-ui/core/Typography';

import DemoProjectSeedCards from './components/DemoProjectSeedCards';
import DemoAttributeEditor from './components/DemoAttributeEditor';
import DemoProjectSeedCards from '../src/components/ProjectSeedCards/demo';
import DemoAttributeEditor from '../src/components/AttributeEditor/demo';


export default class demoApp extends Component {
+1 −1
Original line number Diff line number Diff line
import React, {Component} from 'react';

import AttributeEditor from '../../src/components/AttributeEditor'
import AttributeEditor from './index'

export default class DemoAttributeEditor extends Component {
    constructor(props) {
+4 −4
Original line number Diff line number Diff line
@@ -22,22 +22,22 @@ export const AttributeTypes = {

export default class AttributeItem extends Component {
    static propTypes = {
        onChange: PropTypes.func,
        onFullChange: PropTypes.func,
        name: PropTypes.string.isRequired,
        type: PropTypes.string.isRequired,
        value: PropTypes.oneOfType([
            PropTypes.string,
            PropTypes.number,
            PropTypes.bool,
        ]).isRequired,
        onChange: PropTypes.func,
        onFullChange: PropTypes.func,
        values: PropTypes.arrayOf(PropTypes.string),
        readonly: PropTypes.bool,
        style: PropTypes.object,
        fullWidth: PropTypes.bool,
        noTriggerOnBlur: PropTypes.bool,
        name: PropTypes.string.isRequired,
        description: PropTypes.string,
        unit: PropTypes.string,
        type: PropTypes.string.isRequired,
        invalidChars: PropTypes.object,
    };

+1 −1
Original line number Diff line number Diff line
import React, {Component} from 'react';

import ProjectSeedCards from '../../src/components/ProjectSeedCards'
import ProjectSeedCards from './index'

export default class DemoProjectSeedCards extends Component {