Fix warnings in Storybook

This commit is contained in:
Florian Rival
2020-04-05 12:12:03 +02:00
parent 4c57fbc01f
commit 7ccebc69fa
2 changed files with 5 additions and 10 deletions

View File

@@ -194,22 +194,22 @@ export const makeTestProject = (gd /*: libGDevelop */) /*: TestProject */ => {
var evt = testLayout
.getEvents()
.insertNewEvent(project, 'BuiltinCommonInstructions::Standard', 0);
var evt2 = testLayout
testLayout
.getEvents()
.insertNewEvent(project, 'BuiltinCommonInstructions::Standard', 1);
var evt3 = testLayout
testLayout
.getEvents()
.insertNewEvent(project, 'BuiltinCommonInstructions::ForEach', 2);
var evt4 = testLayout
testLayout
.getEvents()
.insertNewEvent(project, 'BuiltinCommonInstructions::While', 3);
var evt5 = testLayout
testLayout
.getEvents()
.insertNewEvent(project, 'BuiltinCommonInstructions::Repeat', 4);
var evt6 = testLayout
.getEvents()
.insertNewEvent(project, 'BuiltinCommonInstructions::Group', 5);
var evt7 = testLayout
testLayout
.getEvents()
.insertNewEvent(project, 'BuiltinCommonInstructions::Link', 6);
var evt8 = testLayout

View File

@@ -8,7 +8,6 @@ import GDevelopJsInitializerDecorator, {
import { storiesOf, addDecorator } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { linkTo } from '@storybook/addon-links';
import { I18n } from '@lingui/react';
import { t } from '@lingui/macro';
@@ -401,7 +400,6 @@ storiesOf('UI Building Blocks/SemiControlledTextField', module)
})
.add('example that is storing a float in the state', () => {
const [value, setValue] = React.useState(12.35);
const field = React.useRef(null);
return (
<React.Fragment>
@@ -417,7 +415,6 @@ storiesOf('UI Building Blocks/SemiControlledTextField', module)
})
.add('example that is storing a float in the state (commitOnBlur)', () => {
const [value, setValue] = React.useState(12.35);
const field = React.useRef(null);
return (
<React.Fragment>
@@ -434,7 +431,6 @@ storiesOf('UI Building Blocks/SemiControlledTextField', module)
})
.add('reduced margin, in a MiniToolbar', () => {
const [value, setValue] = React.useState('Some value');
const field = React.useRef(null);
return (
<React.Fragment>
@@ -453,7 +449,6 @@ storiesOf('UI Building Blocks/SemiControlledTextField', module)
})
.add('with a (markdown) helper text', () => {
const [value, setValue] = React.useState('Hello World!');
const field = React.useRef(null);
return (
<React.Fragment>