mirror of
https://github.com/4ian/GDevelop.git
synced 2025-10-15 10:19:04 +00:00
Fix warnings in Storybook
This commit is contained in:
@@ -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
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user