Skip to content

Commit

Permalink
Remove useless props.
Browse files Browse the repository at this point in the history
  • Loading branch information
D8H committed May 24, 2024
1 parent d5161d2 commit 5162ae0
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions newIDE/app/src/VariablesList/LocalVariablesDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,13 @@
import * as React from 'react';
import { Trans } from '@lingui/macro';
import VariablesEditorDialog from './VariablesEditorDialog';
import { type HotReloadPreviewButtonProps } from '../HotReload/HotReloadPreviewButton';

type Props = {|
open: boolean,
project: gdProject,
variablesContainer: gdVariablesContainer,
onApply: (selectedVariableName: string | null) => void,
onCancel: () => void,
hotReloadPreviewButtonProps?: ?HotReloadPreviewButtonProps,
/**
* If set to true, a deleted variable won't trigger a confirmation asking if the
* project must be refactored to delete any reference to it.
*/
preventRefactoringToDeleteInstructions?: boolean,
initiallySelectedVariableName: string,
|};

Expand All @@ -25,8 +18,6 @@ const LocalVariablesDialog = ({
open,
onCancel,
onApply,
hotReloadPreviewButtonProps,
preventRefactoringToDeleteInstructions,
initiallySelectedVariableName,
}: Props) => {
const tabs = React.useMemo(
Expand All @@ -50,7 +41,6 @@ const LocalVariablesDialog = ({
title={<Trans>Global variables</Trans>}
tabs={tabs}
helpPagePath={'/all-features/variables/local-variables'}
hotReloadPreviewButtonProps={hotReloadPreviewButtonProps}
preventRefactoringToDeleteInstructions
id="local-variables-dialog"
initiallySelectedVariableName={initiallySelectedVariableName}
Expand Down

0 comments on commit 5162ae0

Please sign in to comment.