Skip to content

Commit

Permalink
Some renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementPasteau committed Sep 13, 2024
1 parent afa606d commit d2b7b88
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion newIDE/app/src/CompactPropertiesEditor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export type PrimitiveValueField =
label: string,
labelIsUserDefined?: boolean,
|}>,
isHiddenWhenThereOnlyOneChoice?: boolean,
isHiddenWhenOnlyOneChoice?: boolean,
getEndAdornmentIcon?: Instance => ?(className: string) => React.Node,
onClickEndAdornment?: Instance => void,
renderLeftIcon?: (className?: string) => React.Node,
Expand Down
2 changes: 1 addition & 1 deletion newIDE/app/src/PropertiesEditor/PropertiesMapToSchema.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const createField = (
property.getExtraInfo().size() > 0 ? property.getExtraInfo().at(0) : '';
return {
name,
isHiddenWhenThereOnlyOneChoice: true,
isHiddenWhenOnlyOneChoice: true,
valueType: 'string',
getChoices: () => {
return !object || behaviorType === ''
Expand Down
4 changes: 2 additions & 2 deletions newIDE/app/src/PropertiesEditor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export type PrimitiveValueField =
label: string,
labelIsUserDefined?: boolean,
|}>,
isHiddenWhenThereOnlyOneChoice?: boolean,
isHiddenWhenOnlyOneChoice?: boolean,
...ValueFieldCommonProperties,
|}
| {|
Expand Down Expand Up @@ -452,7 +452,7 @@ const PropertiesEditor = ({
if (!field.getChoices || !field.getValue) return;

const choices = field.getChoices();
if (choices.length < 2 && field.isHiddenWhenThereOnlyOneChoice) {
if (choices.length < 2 && field.isHiddenWhenOnlyOneChoice) {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion newIDE/app/src/UI/CompactTextAreaField/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import * as React from 'react';
import classNames from 'classnames';
import classes from './CompactTextField.module.css';
import classes from './CompactTextAreaField.module.css';
import { makeTimestampedId } from '../../Utils/TimestampedId';
import Tooltip from '@material-ui/core/Tooltip';
import Text from '../../UI/Text';
Expand Down

0 comments on commit d2b7b88

Please sign in to comment.