Skip to content

Commit 686cbc9

Browse files
committed
and the sandbox
1 parent be07c02 commit 686cbc9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/browser-repl/src/sandbox.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ const IframeRuntimeExample: React.FunctionComponent = () => {
158158
const [maxHistoryLength, setMaxHistoryLength] = useState(1000);
159159
const [initialEvaluate, setInitialEvaluate] = useState<string[]>([]);
160160

161-
const [inputText, setInputText] = useState('');
161+
const [initialText, setInitialText] = useState('');
162162
const [output, setOutput] = useState<ShellOutputEntry[]>([
163163
{ format: 'output', value: { foo: 1, bar: true, buz: function () {} } },
164164
]);
@@ -189,12 +189,12 @@ const IframeRuntimeExample: React.FunctionComponent = () => {
189189
redactInfo={redactInfo}
190190
maxOutputLength={maxOutputLength}
191191
maxHistoryLength={maxHistoryLength}
192-
inputText={inputText}
192+
initialText={initialText}
193193
initialEvaluate={initialEvaluate.filter(Boolean)}
194194
output={output}
195195
history={history}
196196
isOperationInProgress={isOperationInProgress}
197-
onInputChanged={setInputText}
197+
onInputChanged={setInitialText}
198198
onOutputChanged={setOutput}
199199
onHistoryChanged={setHistory}
200200
onOperationStarted={() => setIsOperationInProgress(true)}

0 commit comments

Comments
 (0)