mirror of
https://github.com/Nezumi-2711/react-training.git
synced 2026-09-22 20:01:59 +00:00
Fix code style format
This commit is contained in:
@@ -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';
|
||||
|
||||
/**
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user