mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 16:11:33 +08:00
Move to arrow functions instead of named function declrations
This commit is contained in:
parent
9695408429
commit
ea0b055804
@ -6,7 +6,7 @@ import { Panel } from './components/Panel';
|
||||
const ADDON_ID = 'storybook-addon-viewport';
|
||||
const PANEL_ID = `${ADDON_ID}/addon-panel`;
|
||||
|
||||
function addChannel(api) {
|
||||
const addChannel = (api) => {
|
||||
const channel = addons.getChannel();
|
||||
|
||||
addons.addPanel(PANEL_ID, {
|
||||
@ -17,7 +17,7 @@ function addChannel(api) {
|
||||
});
|
||||
}
|
||||
|
||||
function init() {
|
||||
const init = () => {
|
||||
addons.register(ADDON_ID, addChannel);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user