Skip to content

Commit 7e090f0

Browse files
committed
Improve code formatting in ReadOnlyDisplayFormItem and InputField components for better readability
1 parent 5d68677 commit 7e090f0

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

shesha-reactjs/src/components/readOnlyDisplayFormItem/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export const ReadOnlyDisplayFormItem: FC<IReadOnlyDisplayFormItemProps> = (props
101101
return dropdownDisplayMode === 'raw'
102102
? <InputField style={style} value={values?.join(', ')} />
103103
: (
104-
<div className={styles.wrapper} style={{ ...style }}>
104+
<div className={styles.wrapper} style={{ ...style }}>
105105
{value?.map(({ label, color, icon, value, description }) => {
106106
return (
107107
<ReflistTag

shesha-reactjs/src/components/readOnlyDisplayFormItem/inputField.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ interface IInputFieldProps {
88
}
99

1010
function InputField({ value, style, children }: IInputFieldProps): JSX.Element {
11-
const { styles } = useStyles({textAlign: style?.textAlign || 'left'});
11+
const { styles } = useStyles({ textAlign: style?.textAlign || 'left' });
1212

1313
const { fontSize, fontWeight, color, fontFamily, height } = style || {};
1414

1515
return value || children ? (
16-
<div style={{...style}} className={styles.wrapper}>
16+
<div style={{ ...style }} className={styles.wrapper}>
1717
<div className={styles.inputField} style={{ fontSize, fontWeight, color, fontFamily, whiteSpace: height === 'auto' ? 'pre-wrap' : 'nowrap', flex: 'none' }}>{value || children}</div>
1818
</div>
1919
) : null;

0 commit comments

Comments
 (0)