Fix code style format

This commit is contained in:
2023-11-01 14:37:21 +07:00
parent 47a4c1be41
commit ba28e47639
3 changed files with 32 additions and 7 deletions
+2
View File
@@ -5,6 +5,8 @@ import { getPropValues, isObject, isRequired } from '../helpers/utils';
// Types
import { TKeyValue, TValidator } from '../globals/types';
// Constants
import { ERROR, VALUE } from '../constants/variables';
/**
+28 -7
View File
@@ -88,14 +88,35 @@ const RoomForm = ({
} = getValueFromObj<TRoom>(room);
// Define your state schema
// prettier-ignore
const stateSchema: TStateSchema = {
id: { value: idValue || '' },
name: { value: nameValue || '', error: '' },
amount: { value: amountValue || '', error: '' },
price: { value: priceValue || '', error: '' },
discount: { value: discountValue || '', error: '' },
status: { value: statusValue || '', error: '' },
description: { value: descriptionValue || '', error: '' },
id: {
value: idValue || ''
},
name: {
value: nameValue || '',
error: ''
},
amount: {
value: amountValue || '',
error: ''
},
price: {
value: priceValue || '',
error: ''
},
discount: {
value: discountValue || '',
error: ''
},
status: {
value: statusValue || '',
error: ''
},
description: {
value: descriptionValue || '',
error: ''
},
};
// prettier-ignore
@@ -6,6 +6,8 @@ import UserForm from './Form';
// Interfaces
import { IDialogProps } from '../../globals/interfaces';
// Types
import { TUser } from '../../globals/types';
const UserDialog = forwardRef((props, ref) => {