@storybook/react 8.5.0-beta.1 → 8.5.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-D4DIBAOZ.mjs → chunk-MHYVTTFG.mjs} +3 -3
- package/dist/entry-preview-docs.mjs +3 -3
- package/dist/entry-preview.d.ts +3 -2
- package/dist/entry-preview.js +1 -1
- package/dist/entry-preview.mjs +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +2 -2
- package/package.json +9 -9
- package/template/cli/js/Button.jsx +7 -8
- package/template/cli/js/Header.jsx +1 -5
|
@@ -5,7 +5,7 @@ import PropTypes from 'prop-types';
|
|
|
5
5
|
import { Button } from './Button';
|
|
6
6
|
import './header.css';
|
|
7
7
|
|
|
8
|
-
export const Header = ({ user, onLogin, onLogout, onCreateAccount }) => (
|
|
8
|
+
export const Header = ({ user = null, onLogin, onLogout, onCreateAccount }) => (
|
|
9
9
|
<header>
|
|
10
10
|
<div className="storybook-header">
|
|
11
11
|
<div>
|
|
@@ -54,7 +54,3 @@ Header.propTypes = {
|
|
|
54
54
|
onLogout: PropTypes.func.isRequired,
|
|
55
55
|
onCreateAccount: PropTypes.func.isRequired,
|
|
56
56
|
};
|
|
57
|
-
|
|
58
|
-
Header.defaultProps = {
|
|
59
|
-
user: null,
|
|
60
|
-
};
|