Skip to content
This repository has been archived by the owner on Dec 11, 2021. It is now read-only.

Commit

Permalink
Fixes a bug due to null no longer considered as a valid defaultProp.
Browse files Browse the repository at this point in the history
  • Loading branch information
BertrandBordage committed Mar 1, 2019
1 parent 08955ba commit 4fc834b
Show file tree
Hide file tree
Showing 20 changed files with 226 additions and 225 deletions.
2 changes: 1 addition & 1 deletion public/iframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@
font-family: sans-serif;
}</style><link rel="shortcut icon" type="image/x-icon" href="./favicon.ico"><link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css" integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" crossorigin="anonymous"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css"><script src="https://cdn.jsdelivr.net/npm/flatpickr"></script></head><body><div class="sb-nopreview sb-wrapper"><div class="sb-nopreview_main"><h1 class="sb-nopreview_heading sb-heading">No Preview</h1><p>Sorry, but you either have no stories or none are selected somehow.</p><ul><li>Please check the storybook config.</li><li>Try reloading the page.</li></ul></div></div><div class="sb-errordisplay sb-wrapper"><div id="error-message" class="sb-heading"></div><pre class="sb-errordisplay_code">
<code id="error-stack"></code>
</pre></div><div id="root"></div><script src="runtime~main.674e5333f9cec70457db.bundle.js"></script><script src="vendors~main.674e5333f9cec70457db.bundle.js"></script><script src="main.674e5333f9cec70457db.bundle.js"></script></body></html>
</pre></div><div id="root"></div><script src="runtime~main.6b19cf33ace3535775eb.bundle.js"></script><script src="vendors~main.6b19cf33ace3535775eb.bundle.js"></script><script src="main.6b19cf33ace3535775eb.bundle.js"></script></body></html>
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
}
} catch (e) {
console.warn('unable to connect to parent frame for connecting dev tools');
}</script></head><body><div id="root"></div><script src="./sb_dll/storybook_ui_dll.js"></script><script src="runtime~main.bf7f1bbd18bd2f1ec8df.bundle.js"></script><script src="vendors~main.172548aa8c101e0511a5.bundle.js"></script><script src="main.251ca9c6c53164291214.bundle.js"></script></body></html>
}</script></head><body><div id="root"></div><script src="./sb_dll/storybook_ui_dll.js"></script><script src="runtime~main.bf7f1bbd18bd2f1ec8df.bundle.js"></script><script src="vendors~main.6a5859a974be60d270b2.bundle.js"></script><script src="main.3823480b1b5932d0a422.bundle.js"></script></body></html>
5 changes: 5 additions & 0 deletions public/index.story.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ import { createStore, applyMiddleware } from 'redux';
import { Provider } from 'react-redux';
import thunk from 'redux-thunk';

// Polyfills
import 'core-js/shim'
import 'element-closest';
import 'custom-event-polyfill';

import { StreamField, streamFieldReducer } from '../src';

import { complexNestedStreamField } from './samples'
Expand Down
1 change: 0 additions & 1 deletion public/main.251ca9c6c53164291214.bundle.js

This file was deleted.

1 change: 1 addition & 0 deletions public/main.3823480b1b5932d0a422.bundle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions public/main.674e5333f9cec70457db.bundle.js

This file was deleted.

1 change: 0 additions & 1 deletion public/main.674e5333f9cec70457db.bundle.js.map

This file was deleted.

2 changes: 2 additions & 0 deletions public/main.6b19cf33ace3535775eb.bundle.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions public/main.6b19cf33ace3535775eb.bundle.js.map

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

136 changes: 0 additions & 136 deletions public/vendors~main.172548aa8c101e0511a5.bundle.js

This file was deleted.

74 changes: 0 additions & 74 deletions public/vendors~main.674e5333f9cec70457db.bundle.js

This file was deleted.

1 change: 0 additions & 1 deletion public/vendors~main.674e5333f9cec70457db.bundle.js.map

This file was deleted.

136 changes: 136 additions & 0 deletions public/vendors~main.6a5859a974be60d270b2.bundle.js

Large diffs are not rendered by default.

74 changes: 74 additions & 0 deletions public/vendors~main.6b19cf33ace3535775eb.bundle.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions public/vendors~main.6b19cf33ace3535775eb.bundle.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/webpack-stats.html

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions src/BlocksContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ class BlocksContainer extends React.Component {
id: PropTypes.string,
};

static defaultProps = {
id: null,
};

renderBlock(blockId, canAdd=true) {
return (
<Block key={blockId}
Expand Down
2 changes: 1 addition & 1 deletion src/StreamField.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ class StreamField extends React.Component {
const {id, generatedValue} = this.props;
return (
<DragDropContext onDragEnd={this.onDragEnd}>
{generatedValue ? (<BlocksContainer fieldId={id} />) : null}
{generatedValue ? <BlocksContainer fieldId={id} id={null} /> : null}

<input type="hidden" name={id}
value={JSON.stringify(generatedValue)} />
Expand Down

0 comments on commit 4fc834b

Please sign in to comment.